diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index f4f9bdc..79bb2e6 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -106,27 +106,37 @@ jobs: -k "${{ secrets.MAC_KEYCHAIN_PASS }}" \ build.keychain + - name: Unlock keychain + shell: bash + run: | + security unlock-keychain -p "${{ secrets.MAC_KEYCHAIN_PASS }}" build.keychain + + - name: Create notarization profile + shell: bash + run: | + xcrun notarytool \ + store-credentials "notarytool-profile" \ + --apple-id ${{ secrets.MAC_NOTARIZATION_APPLE_ID }} \ + --team-id ${{ secrets.MAC_NOTARIZATION_TEAM_ID }} \ + --password ${{ secrets.MAC_NOTARIZATION_PASS }}" + - name: Build with Ant run: > ant - -buildfile MoonshineSDKInstaller/build/build.xml all + -buildfile MoonshineSDKInstaller/build/build.xml build -Dapp.version=${{ inputs.version }} - -Dbuild.is.signed=true -Dbuild.is.development=${{ inputs.env != 'production' }} - -Dkeychain.name=build.keychain - -Dkeychain.password=${{ secrets.MAC_KEYCHAIN_PASS }} - - name: Notarize pkg - uses: moonshine-ide/macos-notarize-action@main - with: - app-path: MoonshineSDKInstaller/build/bin/${{ env.app_name }}.pkg - mac-notarization-apple-id: ${{ secrets.MAC_NOTARIZATION_APPLE_ID }} - mac-notarization-team-id: ${{ secrets.MAC_NOTARIZATION_TEAM_ID }} - mac-notarization-pass: ${{ secrets.MAC_NOTARIZATION_PASS }} + - name: Sign Pack with Ant + run: > + ant + -buildfile MoonshineSDKInstaller/build/build.xml sign-pack + -Dkeychain.name=build.keychain + -Dnotarytool.profile="notarytool-profile" - name: Upload Artifact uses: actions/upload-artifact@v4 with: name: MoonshineSDKInstaller - path: MoonshineSDKInstaller/build/bin/${{ env.app_name }}.pkg + path: MoonshineSDKInstaller/build/bin/msdki.pkg if-no-files-found: error \ No newline at end of file diff --git a/MoonshineSDKInstaller/build/build.xml b/MoonshineSDKInstaller/build/build.xml index be60eb9..d2d3027 100644 --- a/MoonshineSDKInstaller/build/build.xml +++ b/MoonshineSDKInstaller/build/build.xml @@ -1,4 +1,4 @@ - + This is a library shared ANT tasks to be used for building ElCapitan Sandbox test project. @@ -22,7 +22,7 @@ - + @@ -36,7 +36,6 @@ resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar"/> - @@ -74,24 +73,30 @@ - - + + + + + + + + + + + + + + + - - - - - - - - + @@ -99,34 +104,41 @@ - - - - - - - - + - + - + + - + + + + + + + + + - @@ -290,10 +302,10 @@ - + - + @@ -304,7 +316,7 @@ - + @@ -319,7 +331,7 @@ @@ -338,7 +350,7 @@ - + @@ -357,19 +369,19 @@ - - + + - + @@ -377,23 +389,6 @@ - - - - - - - - - - - - - - - - - @@ -430,36 +425,33 @@ - + - + - - + + - - - - - - - - - - + + + + + + + + + + + + + \ No newline at end of file