Skip to content

Commit

Permalink
build: set icon, remove distpath for spec file, allow high resolution (
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Feb 2, 2021
1 parent 2240204 commit 6f2054d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
Binary file added build-recipes/PyJibe.icns
Binary file not shown.
8 changes: 6 additions & 2 deletions build-recipes/macos_PyJibe.spec
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,9 @@ coll = COLLECT(exe,
name='PyJibe')
app = BUNDLE(coll,
name='PyJibe.app',
icon=None,
bundle_identifier=None)
icon='PyJibe.icns',
bundle_identifier=None,
info_plist = {
'NSHighResolutionCapable' : 'True',
}
)
10 changes: 5 additions & 5 deletions build-recipes/macos_build_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ else
fi

SPEC="./macos_${NAME}.spec"
APP="./dist_app/${NAME}.app"
DMG="./dist_app/${NAMEVERSION}.dmg"
PKG="./dist_app/${NAME}.pkg"
TMP="./dist_app/pack.temp.dmg"
APP="./dist/${NAME}.app"
DMG="./dist/${NAMEVERSION}.dmg"
PKG="./dist/${NAME}.pkg"
TMP="./dist/pack.temp.dmg"

# cleanup from previous builds
rm -rf ./build
rm -rf ./dist_app

pip install -r macos_build_requirements.txt

pyinstaller -y --log-level=WARN --distpath="./dist_app" ${SPEC}
pyinstaller -y --log-level=WARN ${SPEC}

# Test the binary by executing it with --version argument
echo ""
Expand Down

0 comments on commit 6f2054d

Please sign in to comment.