-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild_mac_linux.sh
More file actions
17 lines (16 loc) · 790 Bytes
/
Copy pathbuild_mac_linux.sh
File metadata and controls
17 lines (16 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env sh
# macOS/Linux counterpart to build_exe.bat. Single source of truth for the
# release build is AllInOneSnapchatDownloader.spec (issue #45); any future
# tweaks belong in the .spec, not in flags here.
set -e
echo "Building Snapchat Memories Downloader..."
pyinstaller --clean AllInOneSnapchatDownloader.spec
echo
echo "Build complete! Check the dist folder."
# PyInstaller builds for the OS it runs on — it cannot cross-compile.
case "$(uname -s)" in
Darwin) echo " macOS build: dist/AllInOneSnapchatDownloader.app" ;;
Linux) echo " Linux build: dist/AllInOneSnapchatDownloader" ;;
*) echo " Note: built for THIS platform only. To get the macOS .app or"
echo " Linux binary, build on that OS or use the GitHub Actions workflow." ;;
esac