-
Notifications
You must be signed in to change notification settings - Fork 9
62 lines (62 loc) · 2.31 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
TARGET: macos
CMD_BUILD: >
nuitka --onefile main.py --output-dir=output --output-filename="JioTV" --remove-output --disable-ccache &&
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: >
nuitka --windows-icon-from-ico=resources\JioTV_logo.ico --onefile main.py --output-dir=output --output-filename="JioTV.exe" --remove-output --disable-ccache --follow-imports &&
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: >
nuitka --onefile main.py --output-dir=output --output-filename="JioTV" --remove-output --disable-ccache &&
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:
python-version: 3.10.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build with pyinstaller for ${{matrix.TARGET}}
run: ${{matrix.CMD_BUILD}}
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: output/${{matrix.OUT_FILE_NAME}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}