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