Attempt to fix macOS issue

This commit is contained in:
YourKalamity
2020-12-19 11:31:25 +00:00
parent 3aaad7a456
commit 958973fe26
9 changed files with 4291 additions and 79 deletions

View File

@@ -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