Skip to content

Commit 61f9878

Browse files
committed
Build logic updates
1 parent 7aaee97 commit 61f9878

File tree

6 files changed

+27
-13
lines changed

6 files changed

+27
-13
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ jobs:
2424
uses: gradle/gradle-build-action@v2
2525
with:
2626
arguments: build --no-daemon
27-
- uses: actions/upload-artifact@v3
27+
- uses: initdc/upload-artifact@feat/artifact-per-file
2828
with:
29-
name: ${{ runner.os }}
29+
artifact-per-file: true
30+
artifact-name-rule: ${{ runner.os }}${ext}
3031
path: build/distributions/*
3132
- name: Upload reports on failure
3233
if: ${{ failure() }}

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,22 @@ A cross-platform GUI and CLI for automatically saving SHSH blobs. [Download](htt
1818
- Automate all features with the CLI
1919
- Save blobs to TSS Saver and SHSH Host as well with one click
2020

21+
## Nightly Builds
22+
23+
You can get the latest nightly build [here](https://nightly.link/airsquared/blobsaver/workflows/main/master) or get older nightly builds at [Actions](https://github.com/airsquared/blobsaver/actions).
24+
2125
## Feedback
2226

2327
Please send feedback via [Github Issue](https://github.com/airsquared/blobsaver/issues/new/choose) if you encounter any
2428
bugs/problems or have a feature request.
2529

2630
## Built With
2731

28-
- JDK 18
32+
- JDK 19
2933
- [IntelliJ Idea](https://www.jetbrains.com/idea/)
3034
- [Gradle](https://gradle.org/)
3135
- [JLink Plugin](https://github.com/beryx/badass-jlink-plugin)
32-
- [Inno Setup](http://www.jrsoftware.org/isinfo.php) (creating Windows installer)
36+
- [Inno Setup](http://www.jrsoftware.org/isinfo.php) (Windows installer)
3337

3438
See the full credits [here](libraries_used.txt).
3539

build.gradle

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,15 @@ task createZip(type: Zip, dependsOn: jpackageImage) {
172172
destinationDirectory = file("${buildDir}/distributions/")
173173
}
174174

175-
task createLinuxTargz(type: Tar, dependsOn: jpackageImage) {
176-
archiveFileName = "blobsaver-${project.version}.tar.gz"
175+
task createTgz(type: Tar, dependsOn: jpackageImage) {
176+
if (os.isMacOsX()) {
177+
String arch = DefaultNativePlatform.currentArchitecture.amd64 ? 'intel' : 'arm'
178+
archiveFileName = "${project.name}-${arch}-${project.version}.tgz"
179+
} else {
180+
archiveFileName = "${project.name}-${project.version}.tgz"
181+
}
177182
compression = Compression.GZIP
178-
from "${buildDir}/jpackage/blobsaver"
183+
from "${buildDir}/jpackage"
179184
destinationDirectory = file("${buildDir}/distributions/")
180185
}
181186

@@ -203,9 +208,9 @@ task bumpCaskPR(type: Exec) {
203208
if (!os.isWindows()) { // never do jpackage on windows
204209
assemble.dependsOn jpackage // will be disabled on other OS if installerType is set to certain values
205210
}
206-
if (findProperty('installerType') == 'tar.gz') {
211+
if (findProperty('installerType') == 'tar.gz' || findProperty('installerType') == 'tgz') {
207212
jpackage.enabled = false
208-
assemble.dependsOn createLinuxTargz
213+
assemble.dependsOn createTgz
209214
}
210215
if (findProperty('installerType') == 'zip') {
211216
jpackage.enabled = false
@@ -218,8 +223,8 @@ if (os.isMacOsX() && findProperty('installerType') == null) {
218223
jpackage.finalizedBy createZip
219224
}
220225
if (os.isLinux() && findProperty('installerType') == null) {
221-
jpackage.finalizedBy createLinuxTargz
226+
jpackage.finalizedBy createTgz
222227
}
223228
if (os.isWindows() && findProperty('installerType') == null) {
224229
assemble.dependsOn windowsInstaller
225-
}
230+
}

gradle/wrapper/gradle-wrapper.jar

1.27 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
44
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

gradlew

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,13 @@ location of your Java installation."
130130
fi
131131
else
132132
JAVACMD=java
133-
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
133+
if ! command -v java >/dev/null 2>&1
134+
then
135+
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
134136
135137
Please set the JAVA_HOME variable in your environment to match the
136138
location of your Java installation."
139+
fi
137140
fi
138141

139142
# Increase the maximum file descriptors if we can.

0 commit comments

Comments
 (0)