File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,9 @@ cat > "dist/Contents/Info.plist" <<EOF
4444EOF
4545
4646touch dist/Contents/MacOS/launcher.sh
47+ touch dist/Contents/MacOS/setup.sh
4748
48- chmod 755 dist/Contents/MacOS/launcher.sh
49+ chmod 755 dist/Contents/MacOS/*
4950chmod 755 dist/Contents/runtime/bin/*
5051
5152cat > "dist/Contents/MacOS/launcher.sh" <<EOF
@@ -59,6 +60,17 @@ export PYTHONPATH="\$RUNTIME_DIR"
5960\$RUNTIME_DIR/bin/python3 "\$SOURCE_DIR/main.py" "\$@"
6061EOF
6162
63+ cat > "dist/Contents/MacOS/setup.sh" <<EOF
64+ #!/bin/bash
65+
66+ DIR="\$(cd "\$(dirname "\$0")" && pwd)"
67+ RUNTIME_DIR="\$DIR/../runtime"
68+ SOURCE_DIR="\$DIR/../src"
69+
70+ export PYTHONPATH="\$RUNTIME_DIR"
71+ \$RUNTIME_DIR/bin/python3 "\$SOURCE_DIR/main.py" --setup
72+ EOF
73+
6274mv dist GSInstaller.app
6375codesign --deep --force --sign - "GSInstaller.app"
6476ditto -c -k --keepParent "GSInstaller.app" GSInstallerMac.zip
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ def install(installConfigs: dict[str, str]) -> None:
3434 makedirs (f"{ datapath } /temp" , exist_ok = True )
3535
3636 run ([
37- "/Applications/GraphScript.app/Contents/MacOS/launcher " ,
37+ "/Applications/GraphScript.app/Contents/MacOS/setup " ,
3838 "--setup" ,
3939 ])
4040
You can’t perform that action at this time.
0 commit comments