Skip to content

Commit 8e18943

Browse files
committed
fixes #52
1 parent e580233 commit 8e18943

File tree

4 files changed

+37
-2
lines changed

4 files changed

+37
-2
lines changed

.github/workflows/build-linux.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ jobs:
7474
run: mvn -B clean package -DskipTests
7575
- name: Patch target dir
7676
run: |
77-
cp LICENSE.txt target
7877
cp target/cryptomator-*.jar target/mods
7978
- name: Run jlink
8079
run: |
@@ -88,6 +87,10 @@ jobs:
8887
JP_APP_VERSION: ${{ needs.prepare.outputs.semVerNum }}
8988
APP_VERSION: ${{ needs.prepare.outputs.semVerStr }}
9089
NATIVE_ACCESS_PACKAGE: ${{ matrix.native-access-lib }}
90+
- name: Update app dir
91+
run: |
92+
cp LICENSE.txt target/cryptomator-cli
93+
cp target/cryptomator-cli_completion.sh target/cryptomator-cli
9194
- uses: actions/upload-artifact@v4
9295
with:
9396
name: cryptomator-cli-linux-${{ matrix.architecture }}

.github/workflows/build-mac.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ jobs:
8484
run: mvn -B clean package -DskipTests
8585
- name: Patch target dir
8686
run: |
87-
cp LICENSE.txt target
8887
cp target/cryptomator-*.jar target/mods
8988
- name: Run jlink
9089
run: |
@@ -100,6 +99,8 @@ jobs:
10099
NATIVE_ACCESS_PACKAGE: org.cryptomator.jfuse.mac
101100
- name: Patch .app dir
102101
run: |
102+
cp LICENSE.txt target/cryptomator-cli.app
103+
cp target/cryptomator-cli_completion.sh target/cryptomator-cli.app
103104
sed -i '' "s|###BUNDLE_SHORT_VERSION_STRING###|${VERSION_NO}|g" cryptomator-cli.app/Contents/Info.plist
104105
sed -i '' "s|###BUNDLE_VERSION###|${REVISION_NO}|g" cryptomator-cli.app/Contents/Info.plist
105106
echo -n "$PROVISIONING_PROFILE_BASE64" | base64 --decode -o "cryptomator-cli.app/Contents/embedded.provisionprofile"

.github/workflows/build-win.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ jobs:
7878
JP_APP_VERSION: ${{ needs.prepare.outputs.semVerNum }}
7979
APP_VERSION: ${{ needs.prepare.outputs.semVerStr }}
8080
NATIVE_ACCESS_PACKAGE: org.cryptomator.jfuse.win
81+
- name: Update app dir
82+
run: |
83+
cp LICENSE.txt target/cryptomator-cli
84+
cp target/cryptomator-cli_completion.sh target/cryptomator-cli
8185
- name: Fix permissions
8286
run: attrib -r target/cryptomator-cli/cryptomator-cli.exe
8387
shell: pwsh

pom.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,33 @@
173173
</execution>
174174
</executions>
175175
</plugin>
176+
<plugin>
177+
<groupId>org.codehaus.mojo</groupId>
178+
<artifactId>exec-maven-plugin</artifactId>
179+
<version>${maven-exec.version}</version>
180+
<executions>
181+
<execution>
182+
<id>generate-autocompletion-script</id>
183+
<phase>package</phase>
184+
<goals>
185+
<goal>exec</goal>
186+
</goals>
187+
</execution>
188+
</executions>
189+
<configuration>
190+
<executable>java</executable>
191+
<arguments>
192+
<argument>-Dpicocli.autocomplete.systemExitOnError</argument>
193+
<argument>-cp</argument>
194+
<classpath/>
195+
<argument>picocli.AutoComplete</argument>
196+
<argument>--force</argument>
197+
<argument>--completionScript</argument>
198+
<argument>${project.build.directory}/cryptomator-cli_completion.sh</argument>
199+
<argument>${mainClass}</argument>
200+
</arguments>
201+
</configuration>
202+
</plugin>
176203
<!--plugin>
177204
<groupId>org.codehaus.mojo</groupId>
178205
<artifactId>license-maven-plugin</artifactId>

0 commit comments

Comments
 (0)