Skip to content

Commit 3422799

Browse files
committed
Miscellaneous improvements
1 parent 431f111 commit 3422799

File tree

20 files changed

+174
-113
lines changed

20 files changed

+174
-113
lines changed

.gitattributes

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ gradlew.bat text eol=crlf
77
gradlew text eol=lf
88

99
# Tell GitHub’s linguist which files to ignore
10-
gradle/InnoSetup6/* linguist-vendored
10+
gradle/InnoSetup6/* linguist-vendored
11+
gradlew linguist-vendored
12+
gradlew.bat linguist-vendored

.github/stale.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ staleLabel: Stale
1313
markComment: >
1414
This issue has been automatically marked as stale because it has not had
1515
recent activity. It will be closed if no further activity occurs. If you
16-
would like this to remain open, please comment,
17-
otherwise this issue will be closed in 5 days.'
16+
would like this issue to remain open, please comment.
1817
# Comment to post when closing a stale issue. Set to `false` to disable
1918
closeComment: false

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
os: [ubuntu-22.04, windows-latest, macOS-latest]
12+
os: [ubuntu-latest, windows-latest, macOS-latest]
1313
steps:
1414
- uses: actions/checkout@v3
1515
- name: Set up JDK
1616
uses: actions/setup-java@v3
1717
with:
18-
java-version: '18'
18+
java-version: '19'
1919
distribution: 'zulu'
2020
- name: Install Linux dependencies
2121
run: sudo apt-get install libplist-dev libimobiledevice-dev libirecovery-1.0-dev
@@ -35,7 +35,7 @@ jobs:
3535
name: failure-${{ runner.os }}
3636
path: build/reports/
3737
release:
38-
name: Create pubilc releases
38+
name: Create public releases
3939
runs-on: ubuntu-latest
4040
needs: build
4141
if: "startsWith(github.event.head_commit.message, 'Release')"

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021 airsquared
2+
* Copyright (c) 2023 airsquared
33
*
44
* This file is part of blobsaver.
55
*
@@ -20,9 +20,8 @@ import org.apache.tools.ant.filters.ReplaceTokens
2020
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
2121

2222
plugins {
23-
id 'java'
2423
id 'application'
25-
id 'com.github.ben-manes.versions' version '0.45.0'
24+
id 'com.github.ben-manes.versions' version '0.46.0'
2625
id 'org.beryx.jlink' version '2.26.0'
2726
id 'org.openjfx.javafxplugin' version '0.0.13'
2827

@@ -34,17 +33,14 @@ idea.module.outputDir file("out/production/classes") // fix running via IntelliJ
3433
* REMEMBER: also update the version string in Main.java
3534
*/
3635
version = "3.5.0"
37-
description = "A cross-platform GUI app for saving SHSH blobs"
36+
description = "A cross-platform GUI and CLI app for saving SHSH blobs"
3837
String appIdentifier = "airsquared.blobsaver.app"
39-
String copyright = "Copyright (c) 2021 airsquared"
38+
String copyright = "Copyright (c) 2023 airsquared"
4039
def os = DefaultNativePlatform.currentOperatingSystem
4140

4241
startScripts.enabled = distZip.enabled = distTar.enabled = false
4342

44-
java.toolchain.languageVersion = JavaLanguageVersion.of(18)
45-
tasks.withType(JavaCompile).configureEach {
46-
sourceCompatibility = 18
47-
}
43+
java.toolchain.languageVersion = JavaLanguageVersion.of(19)
4844

4945
repositories {
5046
mavenCentral()
@@ -56,15 +52,15 @@ dependencies {
5652
exclude group: 'net.java.dev.jna', module: 'jna' //different jna version
5753
}
5854
implementation 'net.java.dev.jna:jna-jpms:5.13.0'
59-
implementation 'org.apache.commons:commons-compress:1.22'
60-
implementation 'info.picocli:picocli:4.7.1'
55+
implementation 'org.apache.commons:commons-compress:1.23.0'
56+
implementation 'info.picocli:picocli:4.7.2'
6157

6258
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
6359
testImplementation group: 'org.testfx', name: 'openjfx-monocle', version: 'jdk-12.0.1+2'
6460
}
6561

6662
javafx {
67-
version = '19'
63+
version = '20'
6864
modules = [ 'javafx.controls', 'javafx.fxml' ]
6965
}
7066

@@ -109,6 +105,7 @@ jlink {
109105
}
110106
jpackage {
111107
imageOptions = [ '--copyright', copyright, '--description', description]
108+
installerOptions.addAll '--about-url', 'https://github.com/airsquared/blobsaver'
112109
vendor = 'airsquared'
113110
installerOutputDir = file("${buildDir}/distributions/")
114111

@@ -174,6 +171,9 @@ task createLinuxTargz(type: Tar, dependsOn: jpackageImage) {
174171

175172
task windowsInstaller(dependsOn: jpackageImage) { // requires inno setup to be installed
176173
doFirst {
174+
copy {
175+
from "${projectDir}/dist/windows/blob.ico" into "${buildDir}/jpackage"
176+
}
177177
copy {
178178
from "${projectDir}/dist/windows/blobsaver.iss" into "${buildDir}/jpackage"
179179
filter(ReplaceTokens, tokens: [AppName: project.name, AppVersion: version, AppCopyright: copyright,

dist/windows/blobsaver.iss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ AppPublisherURL={#MyAppURL}
2222
AppSupportURL={#MyAppURL}
2323
AppUpdatesURL={#MyAppURL}
2424
AppCopyright={#MyAppCopyright}
25-
ArchitecturesAllowed=x64
26-
ArchitecturesInstallIn64BitMode=x64
25+
ArchitecturesAllowed=x64 arm64
26+
ArchitecturesInstallIn64BitMode=x64 arm64
2727
Uninstallable=not IsTaskSelected('portableMode')
2828
DefaultDirName={pf}\{#MyAppName}
2929
DisableProgramGroupPage=yes
3030
OutputDir={#OutputDir}
3131
OutputBaseFilename=blobsaver-{#MyAppVersion}
32-
SetupIconFile=blobsaver\blobsaver.ico
32+
SetupIconFile=blob.ico
3333
Compression=lzma
3434
SolidCompression=yes
3535

gradle/wrapper/gradle-wrapper.jar

2.2 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
4+
networkTimeout=10000
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

gradlew

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -80,13 +80,10 @@ do
8080
esac
8181
done
8282

83-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84-
85-
APP_NAME="Gradle"
83+
# This is normally unused
84+
# shellcheck disable=SC2034
8685
APP_BASE_NAME=${0##*/}
87-
88-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89-
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
86+
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
9087

9188
# Use the maximum available, or set MAX_FD != -1 to use that value.
9289
MAX_FD=maximum
@@ -143,12 +140,16 @@ fi
143140
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144141
case $MAX_FD in #(
145142
max*)
143+
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
144+
# shellcheck disable=SC3045
146145
MAX_FD=$( ulimit -H -n ) ||
147146
warn "Could not query maximum file descriptor limit"
148147
esac
149148
case $MAX_FD in #(
150149
'' | soft) :;; #(
151150
*)
151+
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
152+
# shellcheck disable=SC3045
152153
ulimit -n "$MAX_FD" ||
153154
warn "Could not set maximum file descriptor limit to $MAX_FD"
154155
esac
@@ -193,6 +194,10 @@ if "$cygwin" || "$msys" ; then
193194
done
194195
fi
195196

197+
198+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
199+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
200+
196201
# Collect all arguments for the java command;
197202
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
198203
# shell script including quotes and variable substitutions, so put them in
@@ -205,6 +210,12 @@ set -- \
205210
org.gradle.wrapper.GradleWrapperMain \
206211
"$@"
207212

213+
# Stop when "xargs" is not available.
214+
if ! command -v xargs >/dev/null 2>&1
215+
then
216+
die "xargs is not available"
217+
fi
218+
208219
# Use "xargs" to parse quoted args.
209220
#
210221
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.

0 commit comments

Comments
 (0)