mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-15 18:02:58 +08:00
chore: win 7z
This commit is contained in:
6
.github/workflows/windows-x86-64.yml
vendored
6
.github/workflows/windows-x86-64.yml
vendored
@@ -16,6 +16,9 @@ jobs:
|
||||
Invoke-WebRequest -Uri "http://stahlworks.com/dev/zip.exe" -OutFile "$system32\zip.exe"
|
||||
Invoke-WebRequest -Uri "http://stahlworks.com/dev/unzip.exe" -OutFile "$system32\unzip.exe"
|
||||
|
||||
- name: Install 7z
|
||||
uses: milliewalky/setup-7-zip@v2
|
||||
|
||||
- name: Installing Java
|
||||
run: |
|
||||
curl -s --output ${{ runner.temp }}\java_package.zip -L https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk-21.0.6-windows-x64-b895.91.zip
|
||||
@@ -42,4 +45,5 @@ jobs:
|
||||
name: termora-windows-x86-64
|
||||
path: |
|
||||
build/distributions/*.zip
|
||||
build/distributions/*.msi
|
||||
build/distributions/*.msi
|
||||
build/distributions/*.7z
|
||||
|
||||
@@ -407,6 +407,16 @@ tasks.register("dist") {
|
||||
workingDir = layout.buildDirectory.dir("jpackage/images/win-msi.image/").get().asFile
|
||||
}
|
||||
|
||||
// 7z
|
||||
exec {
|
||||
commandLine(
|
||||
"7z", "a", "-mx=9", "-m0=lzma2", "-mmt=on", "-bso0",
|
||||
distributionDir.file("${finalFilenameWithoutExtension}.7z").asFile.absolutePath,
|
||||
project.name.uppercaseFirstChar()
|
||||
)
|
||||
workingDir = layout.buildDirectory.dir("jpackage/images/win-msi.image/").get().asFile
|
||||
}
|
||||
|
||||
// msi
|
||||
exec {
|
||||
commandLine(
|
||||
|
||||
Reference in New Issue
Block a user