75
75
binary-dir-suffix : " "
76
76
runs-on : ${{ matrix.os }}
77
77
steps :
78
- - name : Preparations fpr windows runner
78
+ - name : Preparations for windows runner
79
79
if : startsWith(matrix.os, 'windows')
80
80
run : echo "JPACKAGE_OS_OPTS=--win-console" >> "$GITHUB_ENV"
81
81
- uses : actions/checkout@v4
@@ -92,22 +92,20 @@ jobs:
92
92
cp LICENSE.txt target
93
93
cp target/cryptomator-*.jar target/mods
94
94
- name : Run jlink
95
- shell : pwsh
96
95
run : >
97
- & $env: JAVA_HOME\ bin\ jlink
96
+ ${ JAVA_HOME}/ bin/ jlink
98
97
--verbose
99
- --output target\ runtime
100
- --module-path "${env: JAVA_HOME}\ jmods"
98
+ --output target/ runtime
99
+ --module-path "${JAVA_HOME}/ jmods"
101
100
--add-modules java.base,java.compiler,java.naming,java.xml `
102
101
--strip-native-commands `
103
102
--no-header-files `
104
103
--no-man-pages `
105
104
--strip-debug `
106
105
--compress zip-6
107
106
- name : Run jpackage
108
- shell : pwsh
109
107
run : >
110
- & $env: JAVA_HOME\ bin\ jpackage
108
+ ${ JAVA_HOME}/ bin/ jpackage
111
109
--verbose
112
110
--type app-image
113
111
--runtime-image target/runtime
@@ -124,16 +122,15 @@ jobs:
124
122
--java-options "--enable-native-access=${{ matrix.native-access-lib }}"
125
123
--java-options "-Xss5m"
126
124
--java-options "-Xmx256m"
127
- --java-options ' -Dfile.encoding="utf-8"'
125
+ --java-options " -Dfile.encoding=\ "utf-8\""
128
126
${JPACKAGE_OS_OPTS}
129
127
- uses : actions/upload-artifact@v4
130
128
with :
131
129
path : ./target/cryptomator-cli${{ matrix.binary-dir-suffix }}
132
130
if-no-files-found : error
133
131
- name : Zip binary for release
134
132
if : startsWith(github.ref, 'refs/tags/') && github.event.action == 'published'
135
- shell : pwsh
136
- run : Compress-Archive -Path .\target\cryptomator-cli${{ matrix.binary-dir-suffix }} -DestinationPath .\cryptomator-cli-${{ needs.prepare.outputs.semVerStr }}.zip
133
+ run : zip -r ./target/cryptomator-cli${{ matrix.binary-dir-suffix }} ./cryptomator-cli-${{ needs.prepare.outputs.semVerStr }}.zip
137
134
- name : Create detached GPG signature with key 615D449FE6E6A235
138
135
run : |
139
136
echo "${GPG_PRIVATE_KEY}" | gpg --batch --quiet --import
0 commit comments