Skip to content

Commit ded3f90

Browse files
committed
correct build scripts
1 parent 2060729 commit ded3f90

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/build-binary.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
description: 'Version'
1010
required: false
1111

12+
permissions:
13+
contents: write
14+
packages: write
15+
1216
env:
1317
JAVA_DIST: 'zulu'
1418
JAVA_VERSION: '22.0.2+9'
@@ -78,7 +82,7 @@ jobs:
7882
- uses: actions/setup-java@v4
7983
with:
8084
java-version: '22'
81-
distribution: 'temurin'
85+
distribution: 'zulu'
8286
- name: Set version
8387
run: mvn versions:set -DnewVersion=${{ needs.prepare.outputs.semVerStr }}
8488
- name: Run maven
@@ -124,7 +128,7 @@ jobs:
124128
${JPACKAGE_OS_OPTS}
125129
- uses: actions/upload-artifact@v4
126130
with:
127-
path: .\target\cryptomator-cli${{ matrix.binary-dir-suffix }}
131+
path: ./target/cryptomator-cli${{ matrix.binary-dir-suffix }}
128132
if-no-files-found: error
129133
- name: Zip binary for release
130134
if: startsWith(github.ref, 'refs/tags/') && github.event.action == 'published'
@@ -133,7 +137,7 @@ jobs:
133137
- name: Create detached GPG signature with key 615D449FE6E6A235
134138
run: |
135139
echo "${GPG_PRIVATE_KEY}" | gpg --batch --quiet --import
136-
echo "${GPG_PASSPHRASE}" | gpg --batch --quiet --passphrase-fd 0 --pinentry-mode loopback -u 615D449FE6E6A235 --detach-sign -a .\cryptomator-cli-${{ needs.prepare.outputs.semVerStr }}.zip
140+
echo "${GPG_PASSPHRASE}" | gpg --batch --quiet --passphrase-fd 0 --pinentry-mode loopback -u 615D449FE6E6A235 --detach-sign -a ./cryptomator-cli-${{ needs.prepare.outputs.semVerStr }}.zip
137141
env:
138142
GPG_PRIVATE_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
139143
GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}

build_linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if [ -z "$JAVA_HOME" ]; then
1616
fi
1717

1818
# Check Java version
19-
MIN_JAVA_VERSION=$(mvn help:evaluate "-Dexpression=jdk.version" -q -DforceStdout):w
19+
MIN_JAVA_VERSION=$(mvn help:evaluate "-Dexpression=jdk.version" -q -DforceStdout)
2020
JAVA_VERSION=$("$JAVA_HOME/bin/java" -version | head -n1 | cut -d' ' -f2 | cut -d'.' -f1)
2121
if [ "$JAVA_VERSION" -lt "$MIN_JAVA_VERSION" ]; then
2222
echo "Java version $JAVA_VERSION is too old. Minimum required version is $MIN_JAVA_VERSION"

0 commit comments

Comments
 (0)