Skip to content
This repository was archived by the owner on May 4, 2026. It is now read-only.

Commit 2abae1e

Browse files
authored
Merge pull request #7 from NamePickerOrg/dev
Dev
2 parents 41ad9a2 + f7eeb7f commit 2abae1e

13 files changed

Lines changed: 1402 additions & 512 deletions

File tree

.github/workflows/build.yml

Lines changed: 19 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Bulid dev version
22
on:
33
push:
4+
branches:
5+
- dev
6+
- master
47
workflow_dispatch:
58

69
jobs:
@@ -14,41 +17,34 @@ jobs:
1417
- name: Setup Python
1518
uses: actions/setup-python@v5
1619
with:
17-
python-version: '3.9' # Version range or exact version of a Python version to use, using SemVer's version range syntax
18-
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
20+
python-version: '3.9'
21+
architecture: 'x64'
1922
cache: 'pip'
2023
cache-dependency-path: |
2124
**/requirements*.txt
2225
2326
- name: Install Dependencies
2427
run: |
2528
pip install -r requirements.txt
26-
27-
- name: Python GUI With TkInter
29+
30+
- name: Build Executable
2831
uses: Nuitka/Nuitka-Action@main
2932
with:
3033
nuitka-version: main
3134
script-name: main.py
3235
mode: app
33-
enable-plugins: tk-inter
36+
enable-plugins: pyqt5
37+
include-data-files: LICENSE=LICENSE
38+
include-data-dir: assets=assets
3439
windows-console-mode: attach
35-
windows-icon-from-ico: favicon.ico
36-
linux-icon: favicon.ico
37-
38-
- name: Pack
39-
run: |
40-
mkdir pub
41-
copy ${{ github.workspace }}/build/main.exe ${{ github.workspace }}/pub
42-
copy ${{ github.workspace }}/NamePicker.png ${{ github.workspace }}/pub
43-
copy ${{ github.workspace }}/favicon.ico ${{ github.workspace }}/pub
40+
windows-icon-from-ico: ./assets/favicon.ico
4441

4542
- name: Upload Artifacts
46-
if: ${{ matrix.os }} == 'windows-latest'
4743
uses: actions/upload-artifact@v4
4844
with:
4945
name: NamePicker-Action-${{ runner.os }}
5046
path: |
51-
${{ github.workspace }}/pub
47+
${{ github.workspace }}/build/main.exe
5248
include-hidden-files: true
5349

5450
build_linux:
@@ -61,8 +57,8 @@ jobs:
6157
- name: Setup Python
6258
uses: actions/setup-python@v5
6359
with:
64-
python-version: '3.9' # Version range or exact version of a Python version to use, using SemVer's version range syntax
65-
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
60+
python-version: '3.9'
61+
architecture: 'x64'
6662
cache: 'pip'
6763
cache-dependency-path: |
6864
**/requirements*.txt
@@ -77,24 +73,16 @@ jobs:
7773
nuitka-version: main
7874
script-name: main.py
7975
mode: app
80-
enable-plugins: tk-inter
76+
enable-plugins: pyqt5
77+
include-data-files: LICENSE=LICENSE
78+
include-data-dir: assets=assets
8179
windows-console-mode: attach
82-
windows-icon-from-ico: favicon.ico
83-
linux-icon: favicon.ico
84-
85-
- name: Pack
86-
if: ${{ matrix.os }} == 'ubuntu-latest'
87-
run: |
88-
mkdir pub
89-
mv ${{ github.workspace }}/build/main.bin ${{ github.workspace }}/pub
90-
mv ${{ github.workspace }}/NamePicker.png ${{ github.workspace }}/pub
91-
mv ${{ github.workspace }}/favicon.ico ${{ github.workspace }}/pub
80+
linux-icon: ./assets/favicon.ico
9281

9382
- name: Upload Artifacts
94-
if: ${{ matrix.os }} == 'ubuntu-latest'
9583
uses: actions/upload-artifact@v4
9684
with:
9785
name: NamePicker-Action-${{ runner.os }}
9886
path: |
99-
${{ github.workspace }}/pub
87+
${{ github.workspace }}/build/main.bin
10088
include-hidden-files: true

0 commit comments

Comments
 (0)