- Timestamp:
- 2021-08-22T02:57:40+02:00 (3 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/ant.yml
r18154 r18155 177 177 upload_url: ${{ needs.createrelease.outputs.upload_url }} # This pulls from the CREATE RELEASE job above, referencing its ID to get its outputs object, which include a `upload_url`. 178 178 asset_path: app/JOSM.zip 179 asset_name: JOSM-${{ runner.os}}-java${{ matrix.java }} .zip179 asset_name: JOSM-${{ runner.os}}-java${{ matrix.java }}-${{ needs.createrelease.outputs.josm_revision }}.zip 180 180 asset_content_type: application/zip 181 181 182 - name: Upload Windows Installer executable 183 if: ${{ runner.os == 'windows' && matrix.java != '8' && matrix.java != '11' && always() }} 184 id: upload-msi 185 uses: actions/upload-release-asset@v1 186 env: 187 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 188 with: 189 upload_url: ${{ needs.createrelease.outputs.upload_url }} # This pulls from the CREATE RELEASE job above, referencing its ID to get its outputs object, which include a `upload_url`. 190 asset_path: app/JOSM.exe 191 asset_name: JOSM-${{ runner.os}}-java${{ matrix.java }}-${{ needs.createrelease.outputs.josm_revision }}.exe 192 asset_content_type: application/vnd.microsoft.portable-executable 193 182 194 - name: Upload Windows Installer package 183 195 if: ${{ runner.os == 'windows' && matrix.java != '8' && matrix.java != '11' && always() }} … … 189 201 upload_url: ${{ needs.createrelease.outputs.upload_url }} # This pulls from the CREATE RELEASE job above, referencing its ID to get its outputs object, which include a `upload_url`. 190 202 asset_path: app/JOSM.msi 191 asset_name: JOSM-${{ runner.os}}-java${{ matrix.java }} .msi203 asset_name: JOSM-${{ runner.os}}-java${{ matrix.java }}-${{ needs.createrelease.outputs.josm_revision }}.msi 192 204 asset_content_type: application/x-ole-storage -
trunk/native/windows/win-jpackage.sh
r18153 r18155 18 18 fi 19 19 20 echo "Building JOSM Windows Installer package "20 echo "Building JOSM Windows Installer packages" 21 21 22 22 mkdir app … … 25 25 then 26 26 echo "SIGN_CERT, SIGN_STOREPASS and SIGN_TSA are not set in the environment." 27 echo "A JOSM. msi will be created but not signed."27 echo "A JOSM.exe and JOSM.msi will be created but not signed." 28 28 SIGNAPP=false 29 29 else … … 35 35 JPACKAGEOPTIONS="" 36 36 37 echo "Building MSI" 38 jpackage $JPACKAGEOPTIONS -n "JOSM" --input dist --main-jar josm-custom.jar \ 37 echo "Building EXE and MSI" 38 for type in exe msi 39 do 40 jpackage $JPACKAGEOPTIONS -n "JOSM" --input dist --main-jar josm-custom.jar \ 39 41 --main-class org.openstreetmap.josm.gui.MainApplication \ 40 --icon ./native/windows/logo.ico --type msi--dest app \42 --icon ./native/windows/logo.ico --type $type --dest app \ 41 43 --java-options "--add-exports=java.base/sun.security.action=ALL-UNNAMED" \ 42 44 --java-options "--add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED" \ … … 60 62 --file-associations native/file-associations/osm.properties \ 61 63 --file-associations native/file-associations/zip.properties \ 64 --add-launcher HWConsole=native/windows/MLConsole.properties \ 62 65 --add-modules java.base,java.datatransfer,java.desktop,java.logging,java.management,java.naming,java.net.http,java.prefs,java.rmi,java.scripting,java.sql,java.transaction.xa,java.xml,jdk.crypto.ec,jdk.jfr,jdk.jsobject,jdk.unsupported,jdk.unsupported.desktop,jdk.xml.dom 66 done 63 67 68 mv app/JOSM-1.5.$1.exe app/JOSM.exe 64 69 mv app/JOSM-1.5.$1.msi app/JOSM.msi 70 71 # Workaround to https://bugs.openjdk.java.net/browse/JDK-8261845 72 # to remove after we switch to Java 17+ for jpackage builds 73 chmod u+w app/JOSM.exe 65 74 66 75 echo "Building done." … … 69 78 CERTIFICATE_P12=certificate.p12 70 79 echo "$SIGN_CERT" | base64 --decode > $CERTIFICATE_P12 71 signtool.exe sign //f $CERTIFICATE_P12 //d "Java OpenStreetMap Editor" //du "https://josm.openstreetmap.de" //p "$SIGN_STOREPASS" //v //fd SHA256 //tr "$SIGN_TSA" //td SHA256 "app/JOSM.msi" 80 for ext in exe msi 81 do 82 signtool.exe sign //f $CERTIFICATE_P12 //d "Java OpenStreetMap Editor" //du "https://josm.openstreetmap.de" //p "$SIGN_STOREPASS" //v //fd SHA256 //tr "$SIGN_TSA" //td SHA256 "app/JOSM.$ext" 83 done 72 84 rm $CERTIFICATE_P12 73 85 fi
Note:
See TracChangeset
for help on using the changeset viewer.