Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kliment/Printrun.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authora2k-hanlon <andrewkhanlon@gmail.com>2021-01-29 23:08:00 +0300
committera2k-hanlon <andrewkhanlon@gmail.com>2021-01-29 23:08:00 +0300
commit6b26dc764af2feb8f5aa886acb40c95ef9fd18de (patch)
treeefcd75c6afba8642e24288536b20787d9d9e2c81 /.github
parent5a130c37857a30f2659cd99ad8048c8bced47bdb (diff)
Modified generation of pyinstaller spec file for build on OSX
- Enables full resolution on Retina displays - Prevents app sleep (stalled prints?)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/buildpackage-mac.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/buildpackage-mac.yml b/.github/workflows/buildpackage-mac.yml
index 804868f..fed46ad 100644
--- a/.github/workflows/buildpackage-mac.yml
+++ b/.github/workflows/buildpackage-mac.yml
@@ -34,6 +34,17 @@ jobs:
- name: Make pyinstaller spec
run: |
pyi-makespec --hidden-import="pkg_resources.py2_warn" -F --add-data images/\*:images --add-data \*.png:. --add-data \*.ico:. -w -i P-face.icns pronterface.py
+ # Edit spec file
+ sed -i '' '$ s/.$//' pronterface.spec
+ cat >> pronterface.spec <<EOL
+ ,
+ info_plist={
+ 'NSPrincipalClass': 'NSApplication',
+ 'NSAppleScriptEnabled': False,
+ 'NSAppSleepDisabled': True,
+ },
+ )
+ EOL
- name: Make pyinstaller build
run: |
pyinstaller --clean pronterface.spec -y