Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement runs-on for macos-latest at least #1

Closed
gcarreno opened this issue Apr 11, 2020 · 0 comments · Fixed by #11
Closed

Implement runs-on for macos-latest at least #1

gcarreno opened this issue Apr 11, 2020 · 0 comments · Fixed by #11
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@gcarreno
Copy link
Owner

Up to date Googling suggest the following to install a *.dmg from the command line:

# usage: installdmg https://example.com/path/to/pkg.dmg
function installdmg {
    set -x
    tempd=$(mktemp -d)
    curl $1 > $tempd/pkg.dmg
    listing=$(sudo hdiutil attach $tempd/pkg.dmg | grep Volumes)
    volume=$(echo "$listing" | cut -f 3)
    if [ -e "$volume"/*.app ]; then
      sudo cp -rf "$volume"/*.app /Applications
    elif [ -e "$volume"/*.pkg ]; then
      package=$(ls -1 "$volume" | grep .pkg | head -1)
      sudo installer -pkg "$volume"/"$package" -target /
    fi
    sudo hdiutil detach "$(echo "$listing" | cut -f 1)"
    rm -rf $tempd
    set +x
}
@gcarreno gcarreno added enhancement New feature or request help wanted Extra attention is needed labels Apr 11, 2020
@gcarreno gcarreno self-assigned this Apr 11, 2020
@gcarreno gcarreno added this to the 3.0 milestone Apr 13, 2020
@gcarreno gcarreno changed the title Implement runs-on for macos-latest at least Implement runs-on for macos-latest at least Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant