Skip to content

Commit

Permalink
ENH: added plain build scripts for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
jotelha committed Nov 11, 2024
1 parent 654ea6e commit 267519c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pyinstaller/macos/build-app.sh
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)"
20 changes: 20 additions & 0 deletions pyinstaller/macos/build-dmg.sh
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/"

0 comments on commit 267519c

Please sign in to comment.