Skip to content

Commit

Permalink
feat: add installer for 30nama using brew
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Nov 8, 2023
1 parent db82c28 commit 0f40488
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/30nama.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ usage() {
}

main_pacman() {
return 0
}

main() {
if [ ! -d /opt/30nama ]; then
sudo mkdir /opt/30nama
sudo chown "$USER:$USER" /opt/30nama
Expand Down Expand Up @@ -72,3 +68,10 @@ Terminal=false
Categories=Entertainment;
EOF
}

main_brew() {
aria2c "https://github.com/Mr30nama/30nama-Hybrid/releases/download/v$version/30nama-$version-arm64.dmg" -d "$HOME/Downloads"
hdiutil attach "$HOME/Downloads/30nama-$version-arm64.dmg"
cp -r "/Volumes/30nama 1.2.1-arm64/30nama.app" /Applications
hdiutil detach "/Volumes/30nama 1.2.1-arm64"
}

0 comments on commit 0f40488

Please sign in to comment.