-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: added plain build scripts for macos
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
brew install \ | ||
python \ | ||
glib \ | ||
gobject-introspection \ | ||
pygobject3 \ | ||
gtk+3 \ | ||
gtksourceview4 \ | ||
adwaita-icon-theme \ | ||
create-dmg \ | ||
gfortran \ | ||
numpy \ | ||
scipy | ||
|
||
python3.13 -m venv --system-site-packages venv | ||
source venv/bin/activate | ||
|
||
pip install --upgrade pip | ||
pip install wheel setuptools_scm | ||
pip install -r pyinstaller/macos/requirements.txt | ||
pip install pyinstaller pyinstaller-hooks-contrib | ||
|
||
cd dtool_lookup_gui && glib-compile-schemas . && cd .. | ||
|
||
pyinstaller -y ./pyinstaller/macos/dtool-lookup-gui-macos.spec 2>&1 | tee pyinstaller.log | ||
|
||
mv dist/dtool-lookup-gui.app dtool-lookup-gui.app | ||
|
||
bash -c "tar -cvf dtool-lookup-gui-macos.tar $(cat pyinstaller/MANIFEST.macos | xargs)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
mkdir -p release | ||
|
||
bash maintenance/copy_files_into_folders.sh \ | ||
pyinstaller/MANIFEST.macos-release release | ||
|
||
create-dmg \ | ||
--volname "dtool-lookup-gui" \ | ||
--eula "LICENSE.txt" \ | ||
--volicon "data/icons/dtool_logo.icns" \ | ||
--window-pos 200 120 \ | ||
--window-size 600 300 \ | ||
--icon-size 100 \ | ||
--icon "dtool-lookup-gui.app" 175 120 \ | ||
--hide-extension "dtool-lookup-gui.app" \ | ||
--app-drop-link 425 120 \ | ||
--hdiutil-verbose \ | ||
"dtool-lookup-gui-macos.dmg" \ | ||
"release/" |