Skip to content
Open
Show file tree
Hide file tree
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
80 changes: 80 additions & 0 deletions .github/workflows/pyinstaller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: pyinstaller

on:
push:
branches:
- main
- master
tags:
- '*'
pull_request:

jobs:
# linux:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: '3.10'
# - name: Build wheels
# uses: PyO3/maturin-action@v1
# with:
# target: ${{ matrix.target }}
# args: --release --out dist --find-interpreter
# sccache: 'true'
# manylinux: auto
# - name: Upload wheels
# uses: actions/upload-artifact@v3
# with:
# name: wheels
# path: dist

windows:
runs-on: windows-latest
strategy:
matrix:
target: [x64, x86]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
architecture: ${{ matrix.target }}
- name: Upgrade pip
run: pip install --upgrade pip
- name: Install pyinstaller
run: pip install pyinstaller
- name: Build package with pyinstaller
run: pyinstaller noScribeEdit.spec
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: noScribeEdit-win-${{ matrix.target }}
path: dist

macos:
runs-on: macos-latest
strategy:
matrix:
target: [x64, arm64]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: ${{ matrix.target }}
- name: Upgrade pip
run: pip install --upgrade pip
- name: Install pyinstaller
run: pip install pyinstaller
- name: Build package with pyinstaller
run: pyinstaller noScribeEdit-macOS.spec
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: noScribeEdit-macOS-${{ matrix.target }}
path: dist
53 changes: 53 additions & 0 deletions noScribeEdit-macOS.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# -*- mode: python ; coding: utf-8 -*-


block_cipher = None


a = Analysis(
['noScribeEdit.py'],
pathex=[],
binaries=[('ffmpeg_mac/ffmpeg','ffmpeg_mac'),
('ffmpeg_mac/ffplay','ffmpeg_mac')],
datas=[('noScribeEditLogo.png', '.')],
hiddenimports=[],
hookspath=[],
hooksconfig={},
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='noScribeEdit',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='noScribeEditLogo.ico'
)
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='noScribeEdit',
)
6 changes: 3 additions & 3 deletions noScribeEdit.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ block_cipher = None
a = Analysis(
['noScribeEdit.py'],
pathex=[],
binaries=[('C:/Users/kai/Documents/Programmierung/2023_WhisperTranscribe/noScribeEditor/ffmpeg_win/ffmpeg.exe','ffmpeg_win'),
('C:/Users/kai/Documents/Programmierung/2023_WhisperTranscribe/noScribeEditor/ffmpeg_win/ffplay.exe','ffmpeg_win')],
datas=[('C:/Users/kai/Documents/Programmierung/2023_WhisperTranscribe/noScribeEditor/noScribeEditLogo.png', '.')],
binaries=[('ffmpeg_win/ffmpeg.exe','ffmpeg_win'),
('ffmpeg_win/ffplay.exe','ffmpeg_win')],
datas=[('noScribeEditLogo.png', '.')],
hiddenimports=[],
hookspath=[],
hooksconfig={},
Expand Down