Merge pull request #21 from jkroepke/main
Add code sign and notarization
This commit is contained in:
		
						commit
						d0962481cc
					
				|  | @ -37,7 +37,7 @@ jobs: | ||||||
|             choco install visualstudio2019buildtools visualstudio2019-workload-vctools |             choco install visualstudio2019buildtools visualstudio2019-workload-vctools | ||||||
|           fi |           fi | ||||||
|           if [ "$RUNNER_OS" == "macOS" ]; then |           if [ "$RUNNER_OS" == "macOS" ]; then | ||||||
|                 env ELECTRON_BUILDER_EXTRA_ARGS="--arm64 --x64" make build |                 env ELECTRON_BUILDER_EXTRA_ARGS="--arm64 --x64 --config.dmg.sign=false" make build | ||||||
|                 for file in dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.dmg; do |                 for file in dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.dmg; do | ||||||
|                     if [[ "$file" == *"arm64"* ]]; then |                     if [[ "$file" == *"arm64"* ]]; then | ||||||
|                         cp "$file" releasefiles/OpenLens-${{ env.LENS_VERSION }}-arm64.dmg |                         cp "$file" releasefiles/OpenLens-${{ env.LENS_VERSION }}-arm64.dmg | ||||||
|  | @ -63,12 +63,18 @@ jobs: | ||||||
|           fi |           fi | ||||||
|         shell: bash |         shell: bash | ||||||
|         working-directory: lens |         working-directory: lens | ||||||
|  |         env: | ||||||
|  |           APPBUNDLEID: "io.kontena.lens-app" | ||||||
|  |           APPLEID: ${{ secrets.APPLEID }} | ||||||
|  |           APPLEIDPASS: ${{ secrets.APPLEIDPASS }} | ||||||
|  |           CSC_LINK: ${{ secrets.CSC_LINK }} | ||||||
|  |           CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} | ||||||
|       - name: Calculate SHA256 checksum |       - name: Calculate SHA256 checksum | ||||||
|         run: | |         run: | | ||||||
|           if [ "$RUNNER_OS" == "Windows" ]; then |           if [ "$RUNNER_OS" == "Windows" ]; then | ||||||
|             certutil -hashfile OpenLens-${{ env.LENS_VERSION }}.exe SHA256 > OpenLens-${{ env.LENS_VERSION }}.exe.sha256 |             certutil -hashfile OpenLens-${{ env.LENS_VERSION }}.exe SHA256 | tee OpenLens-${{ env.LENS_VERSION }}.exe.sha256 | ||||||
|           else |           else | ||||||
|             for filename in OpenLens-${{ env.LENS_VERSION }}*; do shasum -a 256 ${filename} > ${filename}.sha256 ; done |             for filename in OpenLens-${{ env.LENS_VERSION }}*; do shasum -a 256 ${filename} | tee ${filename}.sha256 ; done | ||||||
|           fi |           fi | ||||||
|         shell: bash |         shell: bash | ||||||
|         working-directory: lens/releasefiles |         working-directory: lens/releasefiles | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue