mirror of
https://github.com/thewesker/lazy-dsi-file-downloader.git
synced 2025-12-20 04:21:09 -05:00
Compare commits
8 Commits
ghactionst
...
ghactionst
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
498755fd49 | ||
|
|
fc7e2b2e2e | ||
|
|
f2e62ad95e | ||
|
|
46cfe7815a | ||
|
|
9fae5314c1 | ||
|
|
0541727424 | ||
|
|
be1c9bfb18 | ||
|
|
610f1cea18 |
21
.github/workflows/executables.yml
vendored
21
.github/workflows/executables.yml
vendored
@@ -2,7 +2,7 @@ name: Compile into Executables
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
types: [created]
|
||||
|
||||
######################################################################################
|
||||
# Based off of :
|
||||
@@ -31,21 +31,12 @@ jobs:
|
||||
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
|
||||
- name: Make binary
|
||||
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 }}" main.py
|
||||
cd dist
|
||||
- name: Publish builds
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
path: lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}.exe
|
||||
path: dist/lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}.exe
|
||||
name: windows
|
||||
|
||||
python:
|
||||
@@ -62,7 +53,9 @@ jobs:
|
||||
mkdir temporary
|
||||
cp -r certifi chardet Darwin idna Linux requests urllib3 temporary/
|
||||
cp LICENSE main.py README.md temporary/
|
||||
zip lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}-Python3.zip temporary
|
||||
cd temporary
|
||||
chmod +x main.py
|
||||
zip -r ../lazy-dsi-file-downloader-${{ steps.vars.outputs.tag }}-Python3.zip *
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
@@ -76,7 +69,7 @@ jobs:
|
||||
needs: [windows,python]
|
||||
steps:
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifacts@v2
|
||||
uses: actions/download-artifact@v2
|
||||
- name: Upload to Release
|
||||
run: |
|
||||
ID=$(jq --raw-output '.release.id' $GITHUB_EVENT_PATH)
|
||||
|
||||
4
main.py
4
main.py
@@ -157,6 +157,8 @@ def start():
|
||||
|
||||
#Variables
|
||||
directory = SDentry
|
||||
if directory.endswith("\\") or directory.endswith("/"):
|
||||
directory = directory[:-1]
|
||||
version = firmwareVersion.get()
|
||||
unlaunchNeeded = unlaunch.get()
|
||||
|
||||
@@ -287,6 +289,8 @@ def start():
|
||||
os.remove(directory+"/hiya.dsi")
|
||||
proc = Popen([_7za,"x","-aoa",downloadLocation, "-o"+directory,"for SDNAND SD card\hiya.dsi"])
|
||||
ret_val = proc
|
||||
shutil.move(directory+"/for SDNAND SD card/hiya.dsi",directory+"/hiya.dsi")
|
||||
shutil.rmtree(directory+"/for SDNAND SD card/")
|
||||
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user