File tree Expand file tree Collapse file tree 1 file changed +9
-21
lines changed Expand file tree Collapse file tree 1 file changed +9
-21
lines changed Original file line number Diff line number Diff line change @@ -17,38 +17,26 @@ jobs:
17
17
runs-on : windows-latest
18
18
steps :
19
19
- uses : actions/checkout@v3
20
+
20
21
- name : Set up Python
21
22
uses : actions/setup-python@v4
22
23
with :
23
24
python-version : " 3.10"
25
+
24
26
- name : Install dependencies
25
- run : pip install -r requirements.txt
27
+ run : |
28
+ pip install -r requirements.txt
29
+ pip install -U "https://yt-dlp.github.io/Pyinstaller-Builds/x86_64/pyinstaller-6.7.0-py3-none-any.whl"
30
+
26
31
- name : Build application
27
32
working-directory : ./app
28
33
run : |
29
34
pyinstaller --name=yt-dlp-gui --clean -y app.py --icon ./ui/assets/yt-dlp-gui.ico --noconsole
30
35
Compress-Archive -Path dist/* -DestinationPath yt-dlp-gui-win64.zip
31
- - uses : actions/upload-artifact@v2
32
- with :
33
- name : yt-dlp-gui-win
34
- path : ./app/yt-dlp-gui-win64.zip
35
-
36
- github-release :
37
- name : github-release
38
- runs-on : ubuntu-latest
39
- needs :
40
- - build-windows
41
- steps :
42
- - uses : actions/checkout@v3
43
-
44
- - name : Restore windows build
45
- uses : actions/download-artifact@v3
46
- with :
47
- name : yt-dlp-gui-win
48
- path : /opt/builds
49
36
50
37
- name : Get version
51
- run : echo "VERSION=$(grep -Eo '[0-9]+\.[0-9]+\.[0-9]+' ./app/version.py)" >> $GITHUB_ENV
38
+ working-directory : ./app
39
+ run : echo "VERSION=$(python -c "from version import __version__; print(__version__)")" | Out-File -FilePath $env:GITHUB_ENV -Append
52
40
53
41
- name : Create Release
54
42
uses : softprops/action-gh-release@v1
59
47
draft : false
60
48
prerelease : false
61
49
files : |
62
- /opt/builds /yt-dlp-gui-win64.zip
50
+ ./app /yt-dlp-gui-win64.zip
You can’t perform that action at this time.
0 commit comments