Skip to content

Commit

Permalink
Nuitka instead of pyinstaller.
Browse files Browse the repository at this point in the history
  • Loading branch information
henry-richard7 committed Oct 2, 2024
1 parent 875c197 commit 1470c44
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,38 @@ jobs:
- os: macos-latest
TARGET: macos
CMD_BUILD: >
pyinstaller --onefile --console -n JioTV -i resources/JioTV_logo.icns main.py &&
cp -r templates dist &&
cp -r data dist &&
cp -r static dist &&
cd dist/ &&
nuitka --onefile main.py --output-dir=output --output-filename="JioTV" --remove-output &&
cp -r templates output &&
cp -r data output &&
cp -r static output &&
cd output/ &&
zip -r9 JioTV_auto_build_MACOS_x86_64 .
OUT_FILE_NAME: JioTV_auto_build_MACOS_x86_64.zip
- os: windows-latest
TARGET: windows
CMD_BUILD: >
pyinstaller --onefile --console -n JioTV -i resources\JioTV_logo.ico main.py &&
cp -r templates dist &&
cp -r data dist &&
cp -r static dist &&
cd dist/ &&
nuitka --windows-icon-from-ico=resources\JioTV_logo.ico --onefile main.py --output-dir=output --output-filename="JioTV.exe" --remove-output &&
cp -r templates output &&
cp -r data output &&
cp -r static output &&
cd output/ &&
powershell Compress-Archive -Path .\* -DestinationPath JioTV_auto_build_WINDOWS_x86_64.zip
OUT_FILE_NAME: JioTV_auto_build_WINDOWS_x86_64.zip
ASSET_MIME: application/zip
- os: ubuntu-latest
TARGET: linux
CMD_BUILD: >
pyinstaller --onefile --console -n JioTV main.py &&
cp -r templates dist &&
cp -r data dist &&
cp -r static dist &&
cd dist/ &&
nuitka --onefile main.py --output-dir=output --output-filename="JioTV" --remove-output &&
cp -r templates output &&
cp -r data output &&
cp -r static output &&
cd output/ &&
zip -r9 JioTV_auto_build_LINUX_x86_64 .
OUT_FILE_NAME: JioTV_auto_build_LINUX_x86_64.zip
ASSET_MIME: application/zip
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- name: Set up Python 3.10.X
uses: actions/setup-python@v5
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ creds.db
data/jio_headers.json
Modules/__pycache__/
__pycache__
output
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ uvicorn
fastapi
requests
m3u8
pyinstaller
nuitka
jinja2
pyDes
pydantic
Expand Down

0 comments on commit 1470c44

Please sign in to comment.