Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions contrib/packaging/macos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

# make sure starting from project's root
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$SCRIPT_DIR/../.."

python3 -m pip install pyinstaller
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check if pip install fails


make clean
rm -rf build/portable/
mkdir -p build/portable/
cp -R ./modmesh build/portable/
cp -R ./resources build/portable/
cd build/portable/

cat > modmesh.py <<'EOF'
import os
os.environ["QT3D_RENDERER"] = "opengl"
from modmesh.pilot import launch
if __name__ == "__main__":
launch()
EOF

pyinstaller --onedir \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would pilot work with this installation? pilot is the primary entry point of modmesh.

--windowed \
--add-data "modmesh:modmesh" \
--hidden-import PySide6.Qt3DCore \
--hidden-import PySide6.Qt3DRender \
--hidden-import PySide6.Qt3DExtras \
--hidden-import PySide6.Qt3DInput \
--exclude-module PySide6.QtNetwork \
--icon="resources/pilot/solvcon.icns" \
modmesh.py
Loading