-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1.09 KB
/
build_executable.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
name: Build Windows Executable
permissions: write-all
on:
push:
branches:
- master
jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install requirements
run: pip install pillow tqdm i18nice[YAML] pyinstaller
- name: Run PyInstaller
run: pyinstaller --onefile --name="Pillow_PNG_TGA_Editor" --console --icon=images\Pillows_Hat_Icon.tga --add-data="images:images" --add-data="localization:localization" main.py
- name: Move Executable from dist to root directory
run: |
move dist\Pillow_PNG_TGA_Editor.exe .
rd /s /q dist
shell: cmd
- name: Create Automatic Windows Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: latest
prerelease: false
title: Latest Build
files: Pillow_PNG_TGA_Editor.exe