mirror of
https://github.com/mkb79/audible-cli.git
synced 2025-04-18 20:04:53 -04:00
Update building packages
This commit is contained in:
parent
9bc65323cc
commit
de515aa762
3 changed files with 23 additions and 15 deletions
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
|
@ -38,21 +38,34 @@ jobs:
|
|||
include:
|
||||
- os: ubuntu-latest
|
||||
TARGET: linux
|
||||
CMD_RESOLVE_DEPS: python -m pip install virtualenv && python -m virtualenv venv && source venv/bin/activate
|
||||
CMD_BUILD: pyinstaller --clean audible.spec && cd dist && zip -r9 audible_linux audible
|
||||
CMD_BUILD: >
|
||||
pyinstaller --clean -F --hidden-import audible_cli -n audible -c pyi_entrypoint.py &&
|
||||
cd dist/ &&
|
||||
zip -r9 audible_linux audible
|
||||
OUT_FILE_NAME: audible_linux.zip
|
||||
ASSET_MIME: application/zip # application/octet-stream
|
||||
- os: macos-latest
|
||||
TARGET: macos
|
||||
CMD_BUILD: >
|
||||
pyinstaller --clean audible.spec &&
|
||||
pyinstaller --clean -F --hidden-import audible_cli -n audible -c pyi_entrypoint.py &&
|
||||
cd dist/ &&
|
||||
zip -r9 audible_mac audible
|
||||
OUT_FILE_NAME: audible_mac.zip
|
||||
ASSET_MIME: application/zip
|
||||
- os: windows-latest
|
||||
TARGET: windows
|
||||
CMD_BUILD: pyinstaller --clean audible.spec && cd dist/ && powershell Compress-Archive audible.exe audible_win.zip
|
||||
CMD_BUILD: >
|
||||
pyinstaller --clean -D --hidden-import audible_cli -n audible -c pyi_entrypoint.py &&
|
||||
cd dist/ &&
|
||||
powershell Compress-Archive audible audible_win_dir.zip
|
||||
OUT_FILE_NAME: audible_win_dir.zip
|
||||
ASSET_MIME: application/zip
|
||||
- os: windows-latest
|
||||
TARGET: windows
|
||||
CMD_BUILD: >
|
||||
pyinstaller --clean -F --hidden-import audible_cli -n audible -c pyi_entrypoint.py &&
|
||||
cd dist/ &&
|
||||
powershell Compress-Archive audible.exe audible_win.zip
|
||||
OUT_FILE_NAME: audible_win.zip
|
||||
ASSET_MIME: application/zip
|
||||
steps:
|
||||
|
@ -60,13 +73,10 @@ jobs:
|
|||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
- name: Resolve dependencies for ${{matrix.TARGET}}
|
||||
if: runner.os == 'Linux'
|
||||
run: ${{matrix.CMD_RESOLVE_DEPS}}
|
||||
python-version: '3.8'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip .[pyi] && pip list
|
||||
python -m pip install --upgrade pip .[pyi] && pip list
|
||||
- name: Build with pyinstaller for ${{matrix.TARGET}}
|
||||
run: ${{matrix.CMD_BUILD}}
|
||||
- name: Load Release URL File from release job
|
||||
|
@ -90,4 +100,3 @@ jobs:
|
|||
asset_path: ./dist/${{ matrix.OUT_FILE_NAME}}
|
||||
asset_name: ${{ matrix.OUT_FILE_NAME}}
|
||||
asset_content_type: ${{ matrix.ASSET_MIME}}
|
||||
|
||||
|
|
|
@ -5,10 +5,10 @@ block_cipher = None
|
|||
|
||||
|
||||
a = Analysis(['pyi_entrypoint.py'],
|
||||
pathex=['.\\src\\'],
|
||||
pathex=[],
|
||||
binaries=[],
|
||||
datas=[],
|
||||
hiddenimports=[],
|
||||
hiddenimports=['audible_cli'],
|
||||
hookspath=[],
|
||||
hooksconfig={},
|
||||
runtime_hooks=[],
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import audible_cli
|
||||
from src.audible_cli import cli
|
||||
from audible_cli import cli
|
||||
|
||||
|
||||
cli.main()
|
||||
cli.main()
|
||||
|
|
Loading…
Add table
Reference in a new issue