diff --git a/.github/workflows/buildLinux.yml b/.github/workflows/buildLinux.yml new file mode 100644 index 0000000..2d39c04 --- /dev/null +++ b/.github/workflows/buildLinux.yml @@ -0,0 +1,24 @@ +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: 'ubuntu-latest' + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: 3.9 + + - run: pip install -r requirements.txt pyinstaller + - run: pyinstaller main_linux.spec + - uses: actions/upload-artifact@v3 + with: + name: JellyPlayer_Linux + path: | + dist/* + main.spec diff --git a/.github/workflows/buildMac.yml b/.github/workflows/buildMac.yml index 3cc88dd..7a210b7 100644 --- a/.github/workflows/buildMac.yml +++ b/.github/workflows/buildMac.yml @@ -15,10 +15,10 @@ jobs: python-version: 3.9 - run: pip install -r requirements.txt pyinstaller - - run: pyinstaller --windowed --name JellyPlayer --icon assets/icon.icns --osx-bundle-identifier "prayag17.jellyplayer.0.1.0" main.py + - run: pyinstaller main_macos.spec - uses: actions/upload-artifact@v3 with: - name: JellyPlayer + name: JellyPlayer_MacOS path: | dist/* main.spec diff --git a/.github/workflows/buildWin.yml b/.github/workflows/buildWin.yml new file mode 100644 index 0000000..b955d85 --- /dev/null +++ b/.github/workflows/buildWin.yml @@ -0,0 +1,24 @@ +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: 'windows-latest' + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: 3.9 + + - run: pip install -r requirements.txt pyinstaller + - run: pyinstaller main_win.spec + - uses: actions/upload-artifact@v3 + with: + name: JellyPlayer_Win + path: | + dist/* + main.spec diff --git a/main_linux.spec b/main_linux.spec new file mode 100644 index 0000000..4e91c3e --- /dev/null +++ b/main_linux.spec @@ -0,0 +1,45 @@ +# -*- mode: python ; coding: utf-8 -*- + + +block_cipher = None + + +a = Analysis(['main.py'], + pathex=[], + binaries=[], + datas=[], + 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=False, + name='JellyPlayer', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + console=False, + disable_windowed_traceback=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, + icon='assets/icon.png' ) +coll = COLLECT(exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=True, + upx_exclude=[], + name='JellyPlayer') diff --git a/main_macos.spec b/main_macos.spec new file mode 100644 index 0000000..8ea1b3f --- /dev/null +++ b/main_macos.spec @@ -0,0 +1,49 @@ +# -*- mode: python ; coding: utf-8 -*- + + +block_cipher = None + + +a = Analysis(['main.py'], + pathex=[], + binaries=[], + datas=[], + 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=False, + name='JellyPlayer', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + console=False, + disable_windowed_traceback=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, + icon='assets/icon.icns' ) +coll = COLLECT(exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=True, + upx_exclude=[], + name='JellyPlayer') +app = BUNDLE(coll, + name='JellyPlayer', + icon='assets/icon.icns', + bundle_identifier=None) \ No newline at end of file diff --git a/main.spec b/main_win.spec similarity index 100% rename from main.spec rename to main_win.spec