Skip to content

Commit 3b1fb3d

Browse files
committed
Changes from v2.5.4, run tests in Github actions
1 parent ea7fc3a commit 3b1fb3d

File tree

14 files changed

+31
-27
lines changed

14 files changed

+31
-27
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,31 @@ jobs:
1616
with:
1717
java-version: '1.8'
1818
java-package: jdk+fx
19+
- name: Install Linux dependencies
20+
run: sudo apt install libcurl4-openssl-dev libzip-dev && git clone --depth=1 https://github.com/tihmstar/libgeneral.git && cd libgeneral && ./autogen.sh && make && sudo make install && git clone --depth=1 https://github.com/tihmstar/libfragmentzip.git && cd libfragmentzip && ./autogen.sh && make && sudo make install && sudo ln -s /usr/local/lib/libfragmentzip.so /usr/lib/
21+
if: runner.os == 'Linux'
1922
- name: Fix macOS AppleScript permissions
2023
run: sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "insert into access (service, client, client_type, allowed, prompt_count, indirect_object_identifier_type, indirect_object_identifier) values ('kTCCServiceAppleEvents', '`which java`', 1, 1, 1, 0, 'com.apple.finder')"
2124
if: runner.os == 'macOS'
2225
- name: Create macOS dmg
2326
if: runner.os == 'macOS'
2427
uses: eskatos/gradle-command-action@v1
2528
with:
26-
arguments: createDmg
29+
arguments: test createDmg
2730
wrapper-cache-enabled: true
2831
dependencies-cache-enabled: true
2932
- name: Create Linux tar.gz
3033
if: runner.os == 'Linux'
3134
uses: eskatos/gradle-command-action@v1
3235
with:
33-
arguments: createLinuxTargz
36+
arguments: test createLinuxTargz
3437
wrapper-cache-enabled: true
3538
dependencies-cache-enabled: true
3639
- name: Create Windows exe
3740
if: runner.os == 'Windows'
3841
uses: eskatos/gradle-command-action@v1
3942
with:
40-
arguments: createWindowsInstaller
43+
arguments: test createWindowsInstaller --no-daemon
4144
wrapper-cache-enabled: true
4245
dependencies-cache-enabled: true
4346
- uses: actions/upload-artifact@v2

.idea/blobsaver.iml

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/codeStyles/Project.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules/blobsaver.main.iml

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/modules/blobsaver.test.iml

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: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ plugins {
3131
* REMEMBER: also update the version string in:
3232
* - Main.java
3333
*/
34-
version "v2.5.3"
34+
version "v2.5.4"
3535
sourceCompatibility = 1.8
3636
mainClassName = "airsquared.blobsaver.app.Main"
3737
String appIdentifier = "airsquared.blobsaver.app"
@@ -88,14 +88,12 @@ task createMacApp(dependsOn: shadowJar) {
8888

8989
doLast {
9090
copy {
91-
from "${projectDir}/dist/macos/Contents"
92-
into "${buildDir}/macApp/blobsaver.app/Contents"
91+
from "${projectDir}/dist/macos/Contents" into "${buildDir}/macApp/blobsaver.app/Contents"
9392
}
9493
copy {
95-
from "${projectDir}/dist/macos/Info.plist"
94+
from "${projectDir}/dist/macos/Info.plist" into "${buildDir}/macApp/blobsaver.app/Contents"
9695
expand(CFBundleIdentifier: appIdentifier, NSHumanReadableCopyright: copyright, JVMMainClassName: mainClassName, CFBundleName: project.name,
9796
version: version)
98-
into "${buildDir}/macApp/blobsaver.app/Contents"
9997
}
10098
copy {
10199
from "${projectDir}/LICENSE", "${projectDir}/libraries_used.txt"
@@ -175,11 +173,10 @@ task createLinuxTargz(type: Tar, dependsOn: shadowJar, group: "build") {
175173
}
176174

177175
launch4j { // Windows only, don't use this, use createWindowsInstaller
178-
mainClassName = "airsquared.blobsaver.app.Main"
179176
launch4j.copyright = copyright
180177
downloadUrl = "https://github.com/airsquared/blobsaver/wiki/Making-sure-you-have-the-right-Java-version"
181178
icon = "${projectDir}/dist/windows/blob.ico"
182-
mutexName = "airsquared.blobsaver.app"
179+
mutexName = appIdentifier
183180
windowTitle = "blobsaver"
184181
jar = "${buildDir}/libs/blobsaver.jar"
185182
jreRuntimeBits = "64"
@@ -198,15 +195,13 @@ task createWindowsInstaller(dependsOn: createExe, group: "build") {
198195
doFirst {
199196
delete "${buildDir}/tmp/innosetup"
200197
copy {
201-
from "${projectDir}/dist/windows"
202-
into "${buildDir}/tmp/innosetup"
198+
from "${projectDir}/dist/windows" into "${buildDir}/tmp/innosetup"
203199
rename "LICENSE_windows", "LICENSE"
204200
rename "libraries_used_windows.txt", "libraries_used.txt"
205201
}
206202
copy {
207-
from "${projectDir}/dist/windows/blobsaver.iss"
208-
filter(ReplaceTokens, tokens: [MyAppName: project.name, MyAppVersion: version, AppMutex: appIdentifier])
209-
into "${buildDir}/tmp/innosetup"
203+
from "${projectDir}/dist/windows/blobsaver.iss" into "${buildDir}/tmp/innosetup"
204+
filter(ReplaceTokens, tokens: [AppName: project.name, AppVersion: version, AppCopyright: copyright, AppMutex: appIdentifier])
210205
}
211206
copy {
212207
from "${buildDir}/launch4j/blobsaver.exe" into "${buildDir}/tmp/innosetup/files"

dist/linux/tsschecker

-190 KB
Binary file not shown.

dist/macos/Contents/Frameworks/libplist.dylib

100755100644
6.07 KB
Binary file not shown.

dist/macos/Contents/MacOS/tsschecker

-143 KB
Binary file not shown.

dist/windows/blobsaver.iss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
; Script generated by the Inno Setup Script Wizard.
22
; This script should only be run from Gradle; otherwise some values will not be set properly
33

4-
#define MyAppName "@MyAppName@"
5-
#define MyAppVersion "@MyAppVersion@"
4+
#define MyAppName "@AppName@"
5+
#define MyAppVersion "@AppVersion@"
66
#define MyAppPublisher "airsquared"
77
#define MyAppURL "https://www.github.com/airsquared/blobsaver"
88
#define MyAppExeName "blobsaver.exe"
9-
#define MyAppCopyright "Copyright (c) 2020 airsquared"
9+
#define MyAppCopyright "@AppCopyright@"
10+
#define MyAppMutex "@AppMutex@"
1011

1112
[Setup]
1213
; NOTE: The value of AppId uniquely identifies this application.
@@ -21,7 +22,7 @@ AppPublisherURL={#MyAppURL}
2122
AppSupportURL={#MyAppURL}
2223
AppUpdatesURL={#MyAppURL}
2324
AppCopyright={#MyAppCopyright}
24-
AppMutex=@AppMutex@
25+
AppMutex={#MyAppMutex}
2526
ArchitecturesAllowed=x64 arm64
2627
ArchitecturesInstallIn64BitMode=x64 arm64
2728
Uninstallable=not IsTaskSelected('portableMode')

0 commit comments

Comments
 (0)