mirror of
https://github.com/thewesker/lazy-dsi-file-downloader.git
synced 2025-12-20 04:21:09 -05:00
Attempt to fix macOS issue
This commit is contained in:
34
.github/workflows/executables.yml
vendored
34
.github/workflows/executables.yml
vendored
@@ -51,7 +51,7 @@ jobs:
|
||||
- name: Make zip
|
||||
run: |
|
||||
mkdir temporary
|
||||
cp -r certifi chardet Darwin idna Linux requests urllib3 temporary/
|
||||
cp -r certifi chardet Darwin idna Linux requests urllib3 tkmacosx temporary/
|
||||
cp LICENSE main.py README.md temporary/
|
||||
cd temporary
|
||||
chmod +x main.py
|
||||
@@ -62,11 +62,41 @@ jobs:
|
||||
path: lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}-Python3.zip
|
||||
name: python
|
||||
|
||||
|
||||
macos:
|
||||
runs-on: macos-latest
|
||||
name: macOS
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: "3.x"
|
||||
architecture: "x64"
|
||||
- name: Install pyinstaller
|
||||
run: |
|
||||
pip3 install pyinstaller
|
||||
- name: Get tag
|
||||
id: vars
|
||||
run: echo::set-output name=tag::${GITHUB_REF#refs/*/}
|
||||
- name: Create executable
|
||||
run: |
|
||||
pyinstaller --onefile --add-data "tkmacosx;tkmacosx" --add-data "Darwin;Darwin" --add-data "certifi;certifi" --add-data "requests;requests" --add-data "urllib3;urllib3" --add-data "lazy.ico;." --add-data "chardet;chardet" --icon "lazy.ico" --console --name "lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}-macOS" main.py
|
||||
cd dist
|
||||
chmod +x lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}-macOS
|
||||
zip ../lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}-macOS.zip lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}-macOS
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
path: lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}-macOS.zip
|
||||
name: macos
|
||||
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
name: Publish builds
|
||||
if: ${{ success() }}
|
||||
needs: [windows,python]
|
||||
needs: [windows,python,macos]
|
||||
steps:
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifact@v2
|
||||
|
||||
Reference in New Issue
Block a user