mirror of
https://github.com/pepaskopec-blip/Graduately.git
synced 2026-10-28 07:34:34 +00:00
Ship the macOS installer as a double-clickable app.
A regular user can unzip and open it; install no longer needs Terminal or chmod. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
2d6e1f04c3
commit
45ed500fa2
9 changed files with 146 additions and 39 deletions
26
installers/pack-installer-zips.sh
Executable file
26
installers/pack-installer-zips.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#!/bin/sh
|
||||
# Rebuild the three installer zips that README links to. Browsers download a
|
||||
# zip; they render .command / .sh / .cmd as a text tab.
|
||||
|
||||
set -eu
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
here=$PWD
|
||||
|
||||
chmod +x maturita-installer-macos.command maturita-installer-linux.sh
|
||||
|
||||
tmp=$(mktemp -d)
|
||||
trap 'rm -rf "$tmp"' EXIT INT TERM
|
||||
|
||||
app="$tmp/Nainstalovat maturita.C.app"
|
||||
mkdir -p "$app/Contents/MacOS"
|
||||
cp macos/Info.plist "$app/Contents/Info.plist"
|
||||
cp maturita-installer-macos.command "$app/Contents/MacOS/installer"
|
||||
chmod +x "$app/Contents/MacOS/installer"
|
||||
|
||||
rm -f "$here/maturita-installer-macos.zip"
|
||||
(cd "$tmp" && zip -r -q "$here/maturita-installer-macos.zip" \
|
||||
"Nainstalovat maturita.C.app")
|
||||
|
||||
zip -q -FS maturita-installer-windows.zip maturita-installer-windows.cmd
|
||||
zip -q -FS maturita-installer-linux.zip maturita-installer-linux.sh
|
||||
Loading…
Add table
Add a link
Reference in a new issue