File tree Expand file tree Collapse file tree 4 files changed +37
-2
lines changed Expand file tree Collapse file tree 4 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 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 : |
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 }}
Original file line number Diff line number Diff line change 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 : |
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"
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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>
You can’t perform that action at this time.
0 commit comments