6 Commits

Author SHA1 Message Date
YourKalamity
498755fd49 Change gh actions to created 2020-12-19 10:21:39 +00:00
YourKalamity
fc7e2b2e2e Make .py executable 2020-12-19 10:20:43 +00:00
YourKalamity
f2e62ad95e fix ghactions zip creation 2020-12-18 18:52:00 +00:00
YourKalamity
46cfe7815a Fix recursive zip in gh actions 2020-12-18 18:44:48 +00:00
YourKalamity
9fae5314c1 Fix hiya updater 2020-12-18 18:43:08 +00:00
YourKalamity
0541727424 update another typo 2020-12-18 18:16:35 +00:00
2 changed files with 9 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ name: Compile into Executables
on: on:
release: release:
types: [published] types: [created]
###################################################################################### ######################################################################################
# Based off of : # Based off of :
@@ -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,9 @@ 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
chmod +x main.py
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:

View File

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