diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 69b9e56..722756d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,32 +38,43 @@ jobs: choco install visualstudio2019buildtools visualstudio2019-workload-vctools fi if [ "$RUNNER_OS" == "macOS" ]; then - env ELECTRON_BUILDER_EXTRA_ARGS="--arm64 --x64 --config.dmg.sign=false" make build - for file in dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.dmg; do - if [[ "$file" == *"arm64"* ]]; then - cp "$file" releasefiles/OpenLens-${{ env.LENS_VERSION }}-arm64.dmg - else - cp "$file" releasefiles/OpenLens-${{ env.LENS_VERSION }}.dmg - fi - done - for file in dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.zip; do - if [[ "$file" == *"arm64"* ]]; then - cp "$file" releasefiles/OpenLens-${{ env.LENS_VERSION }}-arm64.zip - else - cp "$file" releasefiles/OpenLens-${{ env.LENS_VERSION }}.zip - fi - done + if [ "${CSC_LINK}" = "" ]; then + unset CSC_LINK + fi + + if [ "${CSC_KEY_PASSWORD}" = "" ]; then + unset CSC_KEY_PASSWORD + fi + + env ELECTRON_BUILDER_EXTRA_ARGS="--arm64 --x64 --config.dmg.sign=false" make build + for file in dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.dmg; do + if [[ "$file" == *"arm64"* ]]; then + cp "$file" releasefiles/OpenLens-${{ env.LENS_VERSION }}-arm64.dmg + else + cp "$file" releasefiles/OpenLens-${{ env.LENS_VERSION }}.dmg + fi + done + for file in dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.zip; do + if [[ "$file" == *"arm64"* ]]; then + cp "$file" releasefiles/OpenLens-${{ env.LENS_VERSION }}-arm64.zip + else + cp "$file" releasefiles/OpenLens-${{ env.LENS_VERSION }}.zip + fi + done elif [ "$RUNNER_OS" == "Linux" ]; then - make build - cp dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.x86_64.AppImage releasefiles/OpenLens-${{ env.LENS_VERSION }}.AppImage - cp dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.amd64.deb releasefiles/OpenLens-${{ env.LENS_VERSION }}.deb - cp dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.x86_64.rpm releasefiles/OpenLens-${{ env.LENS_VERSION }}.rpm + env ELECTRON_BUILDER_EXTRA_ARGS="--x64 --arm64" make build + cp dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.x86_64.AppImage releasefiles/OpenLens-${{ env.LENS_VERSION }}.AppImage + cp dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.amd64.deb releasefiles/OpenLens-${{ env.LENS_VERSION }}.deb + cp dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.x86_64.rpm releasefiles/OpenLens-${{ env.LENS_VERSION }}.rpm + cp dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.arm64.AppImage releasefiles/OpenLens-${{ env.LENS_VERSION }}.arm64.AppImage + cp dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.arm64.deb releasefiles/OpenLens-${{ env.LENS_VERSION }}.arm64.deb + cp dist/OpenLens-${{ env.LENS_VERSION }}-latest.*.aarch64.rpm releasefiles/OpenLens-${{ env.LENS_VERSION }}.arm64.rpm else - # Disable code sign on windows - unset CSC_LINK - unset CSC_KEY_PASSWORD - make build - cp dist/OpenLens*.exe releasefiles/OpenLens-${{ env.LENS_VERSION }}.exe + # Disable code sign on windows + unset CSC_LINK + unset CSC_KEY_PASSWORD + make build + cp dist/OpenLens*.exe releasefiles/OpenLens-${{ env.LENS_VERSION }}.exe fi shell: bash working-directory: lens @@ -73,6 +84,7 @@ jobs: APPLEIDPASS: ${{ secrets.APPLEIDPASS }} CSC_LINK: ${{ secrets.CSC_LINK }} CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} + - name: Calculate SHA256 checksum run: | if [ "$RUNNER_OS" == "Windows" ]; then @@ -88,38 +100,38 @@ jobs: with: name: OpenLens-${{ matrix.os }} retention-days: 5 - path: | - lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.dmg - lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.AppImage - lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.deb - lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.rpm - lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.zip - lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.exe - lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.sha256 - + path: | + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.dmg + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.AppImage + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.deb + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.rpm + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.zip + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.exe + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.sha256 + - name: Release uses: softprops/action-gh-release@v0.1.14 if: github.ref == 'refs/heads/main' with: tag_name: v${{ env.LENS_VERSION }} files: | - lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.dmg - lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.AppImage - lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.deb - lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.rpm - lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.zip - lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.exe - lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.sha256 + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.dmg + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.AppImage + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.deb + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.rpm + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.zip + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}.exe + lens/releasefiles/OpenLens-${{ env.LENS_VERSION }}*.sha256 - name: Latest uses: softprops/action-gh-release@v0.1.14 if: github.ref == 'refs/heads/main' with: tag_name: Latest files: | - lens/dist/OpenLens*.dmg - lens/dist/OpenLens*.AppImage - lens/dist/OpenLens*.deb - lens/dist/OpenLens*.rpm - lens/dist/OpenLens*.exe - lens/dist/OpenLens*.zip - lens/dist/lates*.yml + lens/dist/OpenLens*.dmg + lens/dist/OpenLens*.AppImage + lens/dist/OpenLens*.deb + lens/dist/OpenLens*.rpm + lens/dist/OpenLens*.exe + lens/dist/OpenLens*.zip + lens/dist/lates*.yml diff --git a/.gitignore b/.gitignore index e43b0f9..b12d9d7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .DS_Store +README.md diff --git a/README.md b/README.md index f6c5665..2e0e1a4 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,10 @@ This is the Binary Build Repo for Lens Repository located here : https://github. However, this build does not require you to log in and includes only open source part. Download and use as is. -Go To Release to download your binary of type Linux , MacOS or Windows +Go To Releases to download your binary of type Linux , MacOS or Windows If you have trouble about not seeing pod logs, remove old config files / extensions remaining from old Lens app. -**NOTE:** You can sponsor certificates from the button or link at the right. +**NOTE:** You can sponsor certificates from the button or link at the right.PLEASE KEEP IN MIND PATREON CHARGES MONTHLY SO IF YOU DONT WANT TO BE BILLED EVERY MONTH , CANCEL BEING A PATRON AFTER 1st OF THE INCOMING MONTH YOU HAVE PLEDGED **NOTE:** Auto Updater is now live starting with every binary downloaded from Latest tag or the corresponding release assets.