Skip to content

Commit

Permalink
👷 ci(package name): ubuntu to linux
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinNitroG committed Jun 7, 2024
1 parent 6c7fa44 commit 17f949d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ jobs:
timeout-minutes: 10
if: ${{ needs.prepare.outputs.CONTINUE == 'true' }}
steps:
- name: get OS lowercase
id: get_os
run: echo "OS_LOWER=${RUNNER_OS,,}" >> $GITHUB_ENV

- name: Checkout repo
uses: actions/checkout@main

Expand All @@ -56,8 +60,8 @@ jobs:
- name: Install dependacies
run: pip install -r requirements/requirements.txt && pip install pyinstaller

- name: Build for ${{ matrix.os }}
run: pyinstaller --noconfirm --onefile --console --icon "assets/images/VNU_HCM_LOGO-256.ico" --name "VNULIB-Downloader-${{ matrix.os }}" --log-level "INFO" --add-data "src/:src/" --add-data "config-sample.yml:." --add-data "assets/images/error_page.jpg:assets/images/" --add-data "assets/utils/ascii_banner.txt:assets/utils/" --add-data "LICENSE:." --collect-data grapheme "main.py"
- name: Build for ${{ runner.os }}
run: pyinstaller --noconfirm --onefile --console --icon "assets/images/VNU_HCM_LOGO-256.ico" --name "VNULIB-Downloader-${{ env.OS_LOWER }}" --log-level "INFO" --add-data "src/:src/" --add-data "config-sample.yml:." --add-data "assets/images/error_page.jpg:assets/images/" --add-data "assets/utils/ascii_banner.txt:assets/utils/" --add-data "LICENSE:." --collect-data grapheme "main.py"

- name: Change permissions
if: runner.os == 'Linux' || runner.os == 'macOS'
Expand All @@ -66,7 +70,7 @@ jobs:
- name: Upload to artifact
uses: actions/upload-artifact@main
with:
name: VNULIB-Downloader-${{ matrix.os }}
name: VNULIB-Downloader-${{ env.OS_LOWER }}
path: dist/VNULIB-Downloader-*
compression-level: 6
retention-days: 30
Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Python CLI tool download sách từ <strong>VNULIB</strong>

- [![Windows](https://img.shields.io/badge/Windows-8aadf4?style=for-the-badge&logo=windows&logoColor=white)](https://github.com/KevinNitroG/VNULIB-Downloader/releases/latest/download/VNULIB-Downloader-windows.exe)
- [![Mac OS](https://img.shields.io/badge/MAC_OS-ed8796?style=for-the-badge&logo=apple&logoColor=white)](https://github.com/KevinNitroG/VNULIB-Downloader/releases/latest/download/VNULIB-Downloader-macos)
- [![Linux](https://img.shields.io/badge/Linux-5b6078?style=for-the-badge&logo=linux&logoColor=white)](https://github.com/KevinNitroG/VNULIB-Downloader/releases/latest/download/VNULIB-Downloader-ubuntu)
- [![Linux](https://img.shields.io/badge/Linux-5b6078?style=for-the-badge&logo=linux&logoColor=white)](https://github.com/KevinNitroG/VNULIB-Downloader/releases/latest/download/VNULIB-Downloader-linux)

> [!NOTE]
>
Expand Down Expand Up @@ -184,7 +184,7 @@ Python CLI tool download sách từ <strong>VNULIB</strong>
```
- Linux:
```sh
./VNULIB-Downloader-ubuntu --help
./VNULIB-Downloader-linux --help
```
- Ví dụ _(Windows)_:
```.ps1
Expand Down

0 comments on commit 17f949d

Please sign in to comment.