juc500 정상동작
This commit is contained in:
@@ -35,7 +35,12 @@ jobs:
|
||||
- name: Build with PyInstaller
|
||||
shell: cmd
|
||||
run: |
|
||||
python -m pip install -U pip pyinstaller pyusb
|
||||
python -m pip install -U pip pyinstaller
|
||||
if exist vendor\wheels (
|
||||
python -m pip install --no-index --find-links=vendor\wheels -r requirements.txt || exit /b 1
|
||||
) else (
|
||||
python -m pip install pyusb pynput six || exit /b 1
|
||||
)
|
||||
python -m PyInstaller --noconfirm --clean juc500-windows.spec
|
||||
if not exist dist\JUC500\JUC500.exe exit /b 1
|
||||
if not exist dist\JUC500\_internal\static\index.html (
|
||||
@@ -83,6 +88,24 @@ jobs:
|
||||
throw "Setup.exe was not created"
|
||||
}
|
||||
|
||||
- name: Generate SHA-256 checksums
|
||||
shell: pwsh
|
||||
run: |
|
||||
$names = @(
|
||||
"JUC500-Setup-win64.exe",
|
||||
"JUC500-portable.exe",
|
||||
"JUC500-win64-portable.zip"
|
||||
)
|
||||
$lines = foreach ($name in $names) {
|
||||
$hash = (Get-FileHash "dist-windows\$name" -Algorithm SHA256).Hash.ToLower()
|
||||
"$hash $name"
|
||||
}
|
||||
[IO.File]::WriteAllText(
|
||||
(Join-Path $PWD "dist-windows\SHA256SUMS.txt"),
|
||||
(($lines -join "`n") + "`n"),
|
||||
[Text.Encoding]::ASCII
|
||||
)
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
@@ -91,4 +114,5 @@ jobs:
|
||||
dist-windows/JUC500-Setup-win64.exe
|
||||
dist-windows/JUC500-win64-portable.zip
|
||||
dist-windows/JUC500-portable.exe
|
||||
dist-windows/SHA256SUMS.txt
|
||||
if-no-files-found: error
|
||||
|
||||
Reference in New Issue
Block a user