-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Lowercase "jabref" in scripts and binary names - Change vendor to JabRef e.V. - Case "mac-package-identifier" to "JabRef" - Group macos steps together
- Loading branch information
Showing
5 changed files
with
47 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,7 @@ jobs: | |
java-version: 20 | ||
distribution: 'temurin' | ||
cache: 'gradle' | ||
- name: setup jdk JabRef-fix mac | ||
- name: setup jdk jabref-fix mac | ||
shell: bash | ||
run: | | ||
mkdir ${{runner.temp}}/jdk | ||
|
@@ -114,8 +114,8 @@ jobs: | |
--verbose \ | ||
--mac-sign \ | ||
--vendor JabRef \ | ||
--mac-package-identifier Jabref \ | ||
--mac-package-name JabRef \ | ||
--mac-package-identifier JabRef \ | ||
--mac-package-name "JabRef e.V." \ | ||
--type dmg --mac-signing-key-user-name "JabRef e.V. (6792V39SK3)" \ | ||
--mac-package-signing-prefix org.jabref \ | ||
--mac-entitlements buildres/mac/jabref.entitlements \ | ||
|
@@ -135,8 +135,8 @@ jobs: | |
--app-version ${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }} \ | ||
--verbose \ | ||
--mac-sign \ | ||
--vendor JabRef \ | ||
--mac-package-identifier Jabref \ | ||
--vendor "JabRef e.V." \ | ||
--mac-package-identifier JabRef \ | ||
--mac-package-name JabRef \ | ||
--type pkg --mac-signing-key-user-name "JabRef e.V. (6792V39SK3)" \ | ||
--mac-package-signing-prefix org.jabref \ | ||
|
@@ -148,22 +148,22 @@ jobs: | |
- name: Rename files with arm64 suffix as well | ||
shell: bash | ||
run: | | ||
mv build/distribution/JabRef-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}.dmg build/distribution/JabRef-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}-arm64.dmg | ||
mv build/distribution/JabRef-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}.pkg build/distribution/JabRef-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}-arm64.pkg | ||
mv build/distribution/jabref-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}.dmg build/distribution/jabref-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}-arm64.dmg | ||
mv build/distribution/jabref-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}.pkg build/distribution/jabref-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}-arm64.pkg | ||
- name: Notarize dmg | ||
if: (startsWith(github.ref, 'refs/tags/') || (${{ inputs.notarization }})) | ||
shell: bash | ||
run: | | ||
xcrun notarytool store-credentials "notarytool-profile" --apple-id "[email protected]" --team-id "6792V39SK3" --password "${{ secrets.OSX_NOTARIZATION_APP_PWD }}" --keychain ${{runner.temp}}/keychain/notarization.keychain | ||
xcrun notarytool submit build/distribution/JabRef-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}-arm64.dmg --keychain-profile "notarytool-profile" --keychain ${{runner.temp}}/keychain/notarization.keychain --wait | ||
xcrun stapler staple build/distribution/JabRef-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}-arm64.dmg | ||
xcrun notarytool submit build/distribution/jabref-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}-arm64.dmg --keychain-profile "notarytool-profile" --keychain ${{runner.temp}}/keychain/notarization.keychain --wait | ||
xcrun stapler staple build/distribution/jabref-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}-arm64.dmg | ||
- name: Notarize pkg | ||
if: (startsWith(github.ref, 'refs/tags/') || (${{ inputs.notarization }})) | ||
shell: bash | ||
run: | | ||
xcrun notarytool store-credentials "notarytool-profile" --apple-id "[email protected]" --team-id "6792V39SK3" --password "${{ secrets.OSX_NOTARIZATION_APP_PWD }}" --keychain ${{runner.temp}}/keychain/notarization.keychain | ||
xcrun notarytool submit build/distribution/JabRef-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}-arm64.pkg --keychain-profile "notarytool-profile" --keychain ${{runner.temp}}/keychain/notarization.keychain --wait | ||
xcrun stapler staple build/distribution/JabRef-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}-arm64.pkg | ||
xcrun notarytool submit build/distribution/jabref-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}-arm64.pkg --keychain-profile "notarytool-profile" --keychain ${{runner.temp}}/keychain/notarization.keychain --wait | ||
xcrun stapler staple build/distribution/jabref-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}-arm64.pkg | ||
- name: Upload with rsync | ||
if: ${{ !startsWith(github.ref, 'refs/heads/gh-readonly-queue') }} | ||
shell: bash | ||
|
@@ -178,5 +178,5 @@ jobs: | |
if: ${{ !startsWith(github.ref, 'refs/heads/gh-readonly-queue') }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: JabRef-${{ matrix.displayName }} | ||
name: jabref-${{ matrix.displayName }} | ||
path: build/distribution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,14 +43,14 @@ jobs: | |
include: | ||
- os: ubuntu-latest | ||
displayName: linux | ||
archivePortable: tar -c -C build/distribution JabRef | pigz --rsyncable > build/distribution/JabRef-portable_linux.tar.gz && rm -R build/distribution/JabRef | ||
archivePortable: tar -c -C build/distribution jabref | pigz --rsyncable > build/distribution/jabref-portable_linux.tar.gz && rm -R build/distribution/jabref | ||
eaJdk: https://files.jabref.org/jdks/jdk-linux-x64.tar.gz | ||
- os: windows-latest | ||
displayName: windows | ||
archivePortable: 7z a -r build/distribution/JabRef-portable_windows.zip ./build/distribution/JabRef && rm -R build/distribution/JabRef | ||
archivePortable: 7z a -r build/distribution/jabref-portable_windows.zip ./build/distribution/jabref && rm -R build/distribution/jabref | ||
eaJDK: https://files.jabref.org/jdks/jdk-windows-x64.zip | ||
- os: macos-latest | ||
displayName: macOS | ||
displayName: macos | ||
eaJDK: https://files.jabref.org/jdks/jdk-macos-x64.tar.gz | ||
runs-on: ${{ matrix.os }} | ||
name: Create installer and portable version for ${{ matrix.displayName }} | ||
|
@@ -91,7 +91,7 @@ jobs: | |
java-version: 20 | ||
distribution: 'temurin' | ||
cache: 'gradle' | ||
- name: setup jdk JabRef-fix (windows) | ||
- name: setup jdk jabref-fix (windows) | ||
if: (matrix.os == 'windows-latest') | ||
shell: bash | ||
run: | | ||
|
@@ -105,7 +105,7 @@ jobs: | |
cat gradle.properties | ||
sed -i "s/JavaLanguageVersion.of(20)/JavaLanguageVersion.of(21)/" build.gradle | ||
- name: setup jdk JabRef-fix (ubuntu) | ||
- name: setup jdk jabref-fix (ubuntu) | ||
if: (matrix.os == 'ubuntu-latest') | ||
shell: bash | ||
run: | | ||
|
@@ -119,7 +119,7 @@ jobs: | |
cat gradle.properties | ||
sed -i "s/JavaLanguageVersion.of(20)/JavaLanguageVersion.of(21)/" build.gradle | ||
- name: setup jdk JabRef-fix (macos) | ||
- name: setup jdk jabref-fix (macos) | ||
if: (matrix.os == 'macos-latest') | ||
shell: bash | ||
run: | | ||
|
@@ -152,13 +152,13 @@ jobs: | |
- name: Build runtime image (non-macos) | ||
if: (matrix.os != 'macos-latest') | ||
run: ./gradlew -i -PprojVersion="${{ steps.gitversion.outputs.AssemblySemVer }}" -PprojVersionInfo="${{ steps.gitversion.outputs.InformationalVersion }}" jlinkZip | ||
- name: Prepare merged jars and modules dir (macos) | ||
if: (matrix.os == 'macos-latest') && (steps.checksecrets.outputs.secretspresent == 'YES') | ||
run: ./gradlew -i -PprojVersion="${{ steps.gitversion.outputs.AssemblySemVer }}" -PprojVersionInfo="${{ steps.gitversion.outputs.InformationalVersion }}" prepareModulesDir | ||
- name: Build installer (non-macos) | ||
if: (matrix.os != 'macos-latest') | ||
shell: bash | ||
run: ./gradlew -i -PprojVersion="${{ steps.gitversion.outputs.AssemblySemVer }}" -PprojVersionInfo="${{ steps.gitversion.outputs.InformationalVersion }}" jpackage | ||
- name: Prepare merged jars and modules dir (macos) | ||
if: (matrix.os == 'macos-latest') && (steps.checksecrets.outputs.secretspresent == 'YES') | ||
run: ./gradlew -i -PprojVersion="${{ steps.gitversion.outputs.AssemblySemVer }}" -PprojVersionInfo="${{ steps.gitversion.outputs.InformationalVersion }}" prepareModulesDir | ||
- name: Build dmg (macos) | ||
if: (matrix.os == 'macos-latest') && (steps.checksecrets.outputs.secretspresent == 'YES') | ||
shell: bash | ||
|
@@ -168,12 +168,12 @@ jobs: | |
--module-path ${{env.JDK21}}/Contents/Home/jmods/:build/jlinkbase/jlinkjars \ | ||
--add-modules org.jabref,org.jabref.merged.module \ | ||
--dest build/distribution \ | ||
--name JabRef \ | ||
--name jabref \ | ||
--app-version ${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }} \ | ||
--verbose \ | ||
--mac-sign \ | ||
--vendor JabRef \ | ||
--mac-package-identifier Jabref \ | ||
--vendor "JabRef e.V." \ | ||
--mac-package-identifier JabRef \ | ||
--mac-package-name JabRef \ | ||
--type dmg --mac-signing-key-user-name "JabRef e.V. (6792V39SK3)" \ | ||
--mac-package-signing-prefix org.jabref \ | ||
|
@@ -195,8 +195,8 @@ jobs: | |
--app-version ${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }} \ | ||
--verbose \ | ||
--mac-sign \ | ||
--vendor JabRef \ | ||
--mac-package-identifier Jabref \ | ||
--vendor "JabRef e.V." \ | ||
--mac-package-identifier JabRef \ | ||
--mac-package-name JabRef \ | ||
--type pkg --mac-signing-key-user-name "JabRef e.V. (6792V39SK3)" \ | ||
--mac-package-signing-prefix org.jabref \ | ||
|
@@ -241,14 +241,14 @@ jobs: | |
if: (matrix.os == 'windows-latest') && (!startsWith(github.ref, 'refs/heads/gh-readonly-queue')) | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: JabRef-${{ matrix.displayName }} | ||
name: jabref-${{ matrix.displayName }} | ||
path: build/distribution | ||
- name: Upload to GitHub workflow artifacts store (macos) | ||
if: (matrix.os == 'macos-latest') && (steps.checksecrets.outputs.secretspresent == 'YES') && (!startsWith(github.ref, 'refs/heads/gh-readonly-queue')) | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
# tbn = to-be-notarized | ||
name: JabRef-macOS-tbn | ||
name: jabref-macos-tbn | ||
path: build/distribution | ||
notarize: # outsourced in a separate job to be able to rerun if this fails for timeouts | ||
name: Notarize and package Mac OS binaries | ||
|
@@ -283,26 +283,26 @@ jobs: | |
if: steps.checksecrets.outputs.secretspresent == 'YES' | ||
id: gitversion | ||
uses: gittools/actions/gitversion/[email protected] | ||
- name: Get macOS binaries | ||
- name: Get macos binaries | ||
if: steps.checksecrets.outputs.secretspresent == 'YES' | ||
uses: actions/download-artifact@master | ||
with: | ||
name: JabRef-macOS-tbn | ||
name: jabref-macos-tbn | ||
path: build/distribution/ | ||
- name: Notarize dmg | ||
if: (steps.checksecrets.outputs.secretspresent == 'YES') && (startsWith(github.ref, 'refs/tags/') || inputs.notarization == true) | ||
shell: bash | ||
run: | | ||
xcrun notarytool store-credentials "notarytool-profile" --apple-id "[email protected]" --team-id "6792V39SK3" --password "${{ secrets.OSX_NOTARIZATION_APP_PWD }}" | ||
xcrun notarytool submit build/distribution/JabRef-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}.dmg --keychain-profile "notarytool-profile" --wait | ||
xcrun stapler staple build/distribution/JabRef-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}.dmg | ||
xcrun notarytool submit build/distribution/jabref-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}.dmg --keychain-profile "notarytool-profile" --wait | ||
xcrun stapler staple build/distribution/jabref-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}.dmg | ||
- name: Notarize pkg | ||
if: (steps.checksecrets.outputs.secretspresent == 'YES') && (startsWith(github.ref, 'refs/tags/') || inputs.notarization == true) | ||
shell: bash | ||
run: | | ||
xcrun notarytool store-credentials "notarytool-profile" --apple-id "[email protected]" --team-id "6792V39SK3" --password "${{ secrets.OSX_NOTARIZATION_APP_PWD }}" | ||
xcrun notarytool submit build/distribution/JabRef-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}.pkg --keychain-profile "notarytool-profile" --wait | ||
xcrun stapler staple build/distribution/JabRef-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}.pkg | ||
xcrun notarytool submit build/distribution/jabref-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}.pkg --keychain-profile "notarytool-profile" --wait | ||
xcrun stapler staple build/distribution/jabref-${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}.pkg | ||
- name: Package application image | ||
if: (steps.checksecrets.outputs.secretspresent == 'YES') && (matrix.os != 'macos-latest') | ||
shell: bash | ||
|
@@ -311,7 +311,7 @@ jobs: | |
if: (steps.checksecrets.outputs.secretspresent == 'YES') && (!startsWith(github.ref, 'refs/heads/gh-readonly-queue')) | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: JabRef-macOS | ||
name: jabref-macos | ||
path: build/distribution | ||
upload: | ||
strategy: | ||
|
@@ -352,19 +352,19 @@ jobs: | |
if: steps.checksecrets.outputs.secretspresent == 'YES' | ||
uses: actions/download-artifact@master | ||
with: | ||
name: JabRef-windows | ||
name: jabref-windows | ||
path: build/distribution | ||
- name: Get macOS binaries unsigned | ||
- name: Get macos binaries unsigned | ||
if: (steps.checksecrets.outputs.secretspresent == 'YES') && (inputs.notarization == false && !startsWith(github.ref, 'refs/tags/')) | ||
uses: actions/download-artifact@master | ||
with: | ||
name: JabRef-macOS-tbn | ||
name: jabref-macos-tbn | ||
path: build/distribution/ | ||
- name: Get macOS binaries notarized | ||
- name: Get macos binaries notarized | ||
if: (steps.checksecrets.outputs.secretspresent == 'YES') && (inputs.notarization == true || startsWith(github.ref, 'refs/tags/')) | ||
uses: actions/download-artifact@master | ||
with: | ||
name: JabRef-macOS | ||
name: jabref-macos | ||
path: build/distribution/ | ||
# Upload to build server using rsync | ||
# The action runs on linux only (because it is a Dockerized action), therefore it is embedded in a separate workflow | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters