File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build Windows EXE
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ workflow_dispatch : # 수동 실행 허용
7+
8+ jobs :
9+ build-windows :
10+ runs-on : windows-latest
11+
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v3
15+
16+ - name : Set up Python
17+ uses : actions/setup-python@v4
18+ with :
19+ python-version : ' 3.10'
20+
21+ - name : Install dependencies
22+ run : |
23+ python -m pip install --upgrade pip
24+ pip install pyinstaller
25+ pip install yt-dlp
26+
27+ - name : Create Icons dir
28+ run : mkdir Icons
29+
30+ - name : Download app icon
31+ run : |
32+ curl -L https://raw.githubusercontent.com/yt-dlp/yt-dlp/master/logo.ico -o Icons/app_icon.ico
33+
34+ - name : Download yt-dlp executable
35+ run : |
36+ curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe -o yt-dlp.exe
37+
38+ - name : Build with PyInstaller
39+ run : |
40+ pyinstaller --onefile --windowed --icon=Icons/app_icon.ico --add-data "yt-dlp.exe;." --name "YouTube Downloader" youtube_downloader.py
41+
42+ - name : Upload artifact
43+ uses : actions/upload-artifact@v3
44+ with :
45+ name : YouTubeDownloader-Windows
46+ path : dist/YouTube Downloader.exe
You can’t perform that action at this time.
0 commit comments