File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7777 - name : Package Processing with Gradle
7878 run : ./gradlew packageDistributionForCurrentOS
7979
80+ - name : Verify binary permissions in .deb
81+ if : matrix.os_prefix == 'linux'
82+ run : |
83+ DEB=$(ls app/build/compose/binaries/main/deb/processing*.deb)
84+ dpkg-deb -x "$DEB" /tmp/debcheck
85+ test -x /tmp/debcheck/opt/processing/lib/app/resources/jdk/bin/java
86+ test -x /tmp/debcheck/opt/processing/lib/app/resources/modes/java/application/launch4j/bin/windres
87+
8088 - name : Add artifact
8189 uses : actions/upload-artifact@v4
8290 if : ${{ github.event_name != 'pull_request' }}
Original file line number Diff line number Diff line change @@ -675,4 +675,11 @@ afterEvaluate {
675675 dependsOn(" includeJdk" )
676676 finalizedBy(" setExecutablePermissions" )
677677 }
678+ // finalizedBy above only guarantees setExecutablePermissions runs after
679+ // createDistributable, not before packageDeb, which merely depends on
680+ // createDistributable transitively - without this, jpackage can read the
681+ // app image before permissions are restored on it.
682+ tasks.named(" packageDeb" ).configure {
683+ dependsOn(" setExecutablePermissions" )
684+ }
678685}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ modules:
1919 - ar x processing.deb
2020 - tar --zstd -xf data.tar.zst
2121 - mv opt/processing/* /app/
22- - find /app/lib/app/resources/jdk/ bin -type f -exec chmod +x {} +
22+ - find /app/lib/app/resources -path "*/ bin/*" -type f -exec chmod +x {} +
2323
2424 # Install the desktop file and icon
2525 - install -D /app/lib/processing-Processing.desktop /app/share/applications/$identifier.desktop
Original file line number Diff line number Diff line change 3939 override-prime : |
4040 snapcraftctl prime
4141 rm -vf usr/lib/jvm/java-17-openjdk-*/lib/security/cacerts
42- chmod -R +x opt/processing/lib/app/resources/jdk
42+ find opt/processing/lib/app/resources -path "*/bin/*" -type f -exec chmod +x {} +
You can’t perform that action at this time.
0 commit comments