Merge branch 'macos-build'
This commit is contained in:
20
.github/workflows/develop.yml
vendored
20
.github/workflows/develop.yml
vendored
@@ -55,3 +55,23 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: gotify-tray_amd64_ubuntu_${{ matrix.tag }}.deb
|
name: gotify-tray_amd64_ubuntu_${{ matrix.tag }}.deb
|
||||||
path: gotify-tray_amd64_ubuntu_${{ matrix.tag }}.deb
|
path: gotify-tray_amd64_ubuntu_${{ matrix.tag }}.deb
|
||||||
|
|
||||||
|
build-macos:
|
||||||
|
runs-on: macos-12
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: '3.9.5'
|
||||||
|
- name: Upgrade pip and enable wheel support
|
||||||
|
run: python -m pip install --upgrade pip setuptools wheel
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
make build
|
||||||
|
cp dist/Gotify-Tray.app Gotify-Tray.app
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: Gotify-Tray.app
|
||||||
|
path: Gotify-Tray.app
|
||||||
|
|||||||
6
Makefile
6
Makefile
@@ -7,6 +7,12 @@ build: clean
|
|||||||
cp -r dist/gotify-tray build/debian/usr/lib/gotify-tray
|
cp -r dist/gotify-tray build/debian/usr/lib/gotify-tray
|
||||||
dpkg -b build/debian dist/gotify-tray_amd64.deb
|
dpkg -b build/debian dist/gotify-tray_amd64.deb
|
||||||
|
|
||||||
|
build-macos: clean
|
||||||
|
pip install -r requirements.txt
|
||||||
|
pip install pyinstaller
|
||||||
|
pip install Pillow
|
||||||
|
pyinstaller gotify-tray-macos.spec
|
||||||
|
|
||||||
install: build
|
install: build
|
||||||
sudo dpkg -i dist/gotify-tray_amd64.deb
|
sudo dpkg -i dist/gotify-tray_amd64.deb
|
||||||
|
|
||||||
|
|||||||
41
gotify-tray-macos.spec
Normal file
41
gotify-tray-macos.spec
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
# -*- mode: python -*-
|
||||||
|
|
||||||
|
block_cipher = None
|
||||||
|
|
||||||
|
a = Analysis(['gotify_tray/__main__.py'],
|
||||||
|
pathex=[os.getcwd()],
|
||||||
|
binaries=[],
|
||||||
|
datas=[('gotify_tray/gui/images', 'gotify_tray/gui/images')],
|
||||||
|
hiddenimports=[],
|
||||||
|
hookspath=[],
|
||||||
|
runtime_hooks=[],
|
||||||
|
excludes=[],
|
||||||
|
win_no_prefer_redirects=False,
|
||||||
|
win_private_assemblies=False,
|
||||||
|
cipher=block_cipher,
|
||||||
|
noarchive=False)
|
||||||
|
pyz = PYZ(a.pure, a.zipped_data,
|
||||||
|
cipher=block_cipher)
|
||||||
|
exe = EXE(pyz,
|
||||||
|
a.scripts,
|
||||||
|
[],
|
||||||
|
exclude_binaries=True,
|
||||||
|
name='gotify-tray',
|
||||||
|
debug=False,
|
||||||
|
bootloader_ignore_signals=False,
|
||||||
|
strip=False,
|
||||||
|
upx=True,
|
||||||
|
console=False,
|
||||||
|
version='version.py',
|
||||||
|
icon='logo.ico')
|
||||||
|
coll = COLLECT(exe,
|
||||||
|
a.binaries,
|
||||||
|
a.zipfiles,
|
||||||
|
a.datas,
|
||||||
|
strip=False,
|
||||||
|
upx=True,
|
||||||
|
name='gotify-tray')
|
||||||
|
app = BUNDLE(coll,
|
||||||
|
name='Gotify-Tray.app',
|
||||||
|
icon='logo.ico',
|
||||||
|
bundle_identifier=None)
|
||||||
Reference in New Issue
Block a user