Skip to content

Commit 20613eb

Browse files
authored
Create PyInstaller.yml
1 parent 7a30cf3 commit 20613eb

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/PyInstaller.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: build-package
2+
3+
# Only run this when the master branch changes
4+
on:
5+
push:
6+
workflow_dispatch:
7+
#tags:
8+
# - "v*"
9+
10+
# This job installs dependencies, build the book, and pushes it to `gh-pages`
11+
jobs:
12+
build:
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, macos-latest, windows-latest]
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: actions/setup-python@v4
20+
with:
21+
python-version: "3.12"
22+
- name: Install redwrench
23+
shell: bash -l {0}
24+
run: |
25+
pip3 install .
26+
- name: install PyInstaller
27+
shell: bash -l {0}
28+
run: |
29+
pip3 install pyinstaller==5.9.0
30+
- name: Build Pyinstaller .exe (macOS and Linux)
31+
if: matrix.os != 'windows-latest'
32+
shell: bash -l {0}
33+
run: |
34+
pyinstaller -n redwrench --onefile --windowed dosview.py
35+
- name: Build Pyinstaller .exe (Windows)
36+
if: matrix.os == 'windows-latest'
37+
shell: bash -l {0}
38+
run: |
39+
pyinstaller -n redwrench --onefile app.py
40+
- uses: vimtor/action-zip@v1
41+
with:
42+
files: dist/
43+
recursive: false
44+
dest: ${{ matrix.os }}-${{github.ref_name}}.zip
45+
- uses: softprops/action-gh-release@v1
46+
with:
47+
files: ${{ matrix.os }}-${{github.ref_name}}.zip

0 commit comments

Comments
 (0)