2 Commits

Author SHA1 Message Date
YourKalamity
50d06876ad Add colour.py 2020-12-19 21:30:06 +00:00
YourKalamity
5937d32b87 More fixes for macOS builds 2020-12-19 11:44:18 +00:00
2 changed files with 1128 additions and 4 deletions

View File

@@ -31,12 +31,12 @@ jobs:
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Make binary - name: Make binary
run: | run: |
pyinstaller --onefile --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 }}" main.py pyinstaller --onefile --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 }}-Windows" main.py
cd dist cd dist
- name: Publish builds - name: Publish builds
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
path: dist/lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}.exe path: dist/lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}-Windows.exe
name: windows name: windows
python: python:
@@ -52,7 +52,7 @@ jobs:
run: | run: |
mkdir temporary mkdir temporary
cp -r certifi chardet Darwin idna Linux requests urllib3 tkmacosx temporary/ cp -r certifi chardet Darwin idna Linux requests urllib3 tkmacosx temporary/
cp LICENSE main.py README.md temporary/ cp LICENSE main.py colour.py README.md temporary/
cd temporary cd temporary
chmod +x main.py chmod +x main.py
zip -r ../lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}-Python3.zip * zip -r ../lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}-Python3.zip *
@@ -82,7 +82,7 @@ jobs:
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Create executable - name: Create executable
run: | 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 pyinstaller --onefile --add-data "colour.py:." --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 cd dist
chmod +x lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}-macOS 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 zip ../lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}-macOS.zip lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}-macOS

1124
colour.py Normal file

File diff suppressed because it is too large Load Diff