Skip to content

Commit

Permalink
[workflows:executables] restore 'gallery-dl_ubuntu' name
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed May 28, 2024
1 parent 53aadb0 commit 05f8435
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/executables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Build executable
run: |
pip install requests requests[socks] yt-dlp pyyaml ${{ matrix.python-packages }} pyinstaller
python ./scripts/pyinstaller.py --label '${{ env.LABEL }}'
python ./scripts/pyinstaller.py --os '${{ matrix.os }}' --arch '${{ matrix.architecture }}'
- uses: actions/upload-artifact@v4
with:
Expand Down
7 changes: 2 additions & 5 deletions scripts/pyinstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,12 @@ def main():
else:
label = ""
if args.os:
os = args.os.partition("-")[0].lower()
if os == "ubuntu":
os = "linux"
label += os
label += args.os.partition("-")[0].lower()
if args.arch == "x86":
label += "_x86"

if args.print:
return print(label)
return print(label.replace("ubuntu", "linux"))

name = "gallery-dl"
if label:
Expand Down

0 comments on commit 05f8435

Please sign in to comment.