File tree Expand file tree Collapse file tree 3 files changed +42
-3
lines changed
Expand file tree Collapse file tree 3 files changed +42
-3
lines changed Original file line number Diff line number Diff line change 1+ name : Pyinstaller package
2+
3+ on :
4+ push :
5+ branches : [ master, feature ]
6+ pull_request :
7+ branches : [ master ]
8+
9+ jobs :
10+ build :
11+ name : Build & Test on ${{ matrix.os }}
12+ runs-on : ${{ matrix.os }}
13+
14+ strategy :
15+ matrix :
16+ os : [ubuntu-24.04, ubuntu-22.04, windows-latest]
17+
18+ steps :
19+ - uses : actions/checkout@v2
20+ - name : Install dependencies
21+ run : |
22+ python -m pip install --upgrade pip
23+ python -m pip install flake8 pytest pylint
24+ - name : Install
25+ run : |
26+ python -m pip install .
27+ - name : Make executable
28+ uses : sayyid5416/pyinstaller@v1
29+ with :
30+ python-version : 3.12
31+ spec : ' packaging/gui-tklinux.spec'
32+ upload_exe_with_name : ' isp-programmer-${{ matrix.os }}'
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ binaries = []
66hiddenimports = []
77tmp_ret = collect_all ('isp_programmer' )
88datas += tmp_ret [0 ]; binaries += tmp_ret [1 ]; hiddenimports += tmp_ret [2 ]
9+ tmp_ret = collect_all ('pyserial' )
10+ datas += tmp_ret [0 ]; binaries += tmp_ret [1 ]; hiddenimports += tmp_ret [2 ]
11+ tmp_ret = collect_all ('serial' )
12+ datas += tmp_ret [0 ]; binaries += tmp_ret [1 ]; hiddenimports += tmp_ret [2 ]
913
1014
1115a = Analysis (
@@ -29,10 +33,11 @@ exe = EXE(
2933 a .binaries ,
3034 a .datas ,
3135 [],
32- name = 'gui-tk ' ,
36+ name = 'isp-programmer ' ,
3337 debug = False ,
3438 bootloader_ignore_signals = False ,
35- strip = False ,
39+ #strip=False,
40+ strip = True ,
3641 upx = True ,
3742 upx_exclude = [],
3843 runtime_tmpdir = None ,
Original file line number Diff line number Diff line change 11from quick import gui_it
22
3- from . cli import gr1 as cli_main
3+ from .cli import gr1 as cli_main
4+
45
56def main ():
67 gui_it (cli_main )
78
9+
810if __name__ == "__main__" :
911 main ()
You can’t perform that action at this time.
0 commit comments