Compare commits

...

92 Commits
v6.3.0 ... main

Author SHA1 Message Date
Jan-Otto Kröpke a7d44fba75
Update README.md (#197) 2024-05-03 08:30:46 +02:00
Muhammed Kalkan 03b3f94661
Merge pull request #191 from MuhammedKalkan/MuhammedKalkan-patch-1
Update README.md
2024-02-05 15:22:42 +03:00
Muhammed Kalkan ea015ca86f
Update README.md 2024-02-05 15:22:26 +03:00
Muhammed Kalkan 69e11a872e Cancel builds 2024-02-01 16:24:41 +00:00
MuhammedKalkan 583a606ee3 Version updated to: 2024.1.300751-latest 2024-01-31 12:35:57 +00:00
MuhammedKalkan 46e3bfe503 Version updated to: 2024.1.170738-latest 2024-01-25 18:28:16 +00:00
Jan-Otto Kröpke 0f102c4f64
Use electron-builder beforeBuild (#164) 2023-06-30 19:33:12 +02:00
Jan-Otto Kröpke 32fca4b84b
Update main.yml (#162) 2023-06-16 07:37:42 +02:00
Jan-Otto Kröpke 8cb4107664
Fix linux arm64 builds (#160) 2023-06-15 23:46:06 +02:00
Muhammed Kalkan c4b099462f
Merge pull request #158 from YossiTamari/patch-1
Update README.md
2023-06-09 14:06:23 +03:00
YossiTamari ed93e90606
Update README.md
The Extensions UI is not in Settings page.
Mentioned how to solve the issue described in https://github.com/alebcay/openlens-node-pod-menu/issues/65#issuecomment-1570385052.
2023-06-07 12:21:34 +03:00
Jan-Otto Kröpke 391c2cd111
fix auto updater (again) (#157) 2023-06-06 21:41:07 +02:00
Jan-Otto Kröpke a2d9d20044
fix auto updater (#156) 2023-06-06 09:15:05 +02:00
Jan-Otto Kröpke 7c226405b1
Mention binary application builds (#153) 2023-06-05 18:18:01 +02:00
Jan-Otto Kröpke d87072ab17
Build MSI and Portable packages for windows (#150) 2023-06-05 09:03:32 +02:00
Jan-Otto Kröpke d66845b79f
Implement Build Number (#149) 2023-05-31 00:02:48 +02:00
MuhammedKalkan eeecbfe469 Version updated to: 6.5.2 2023-05-30 18:25:38 +00:00
Muhammed Kalkan 2ef129c6d5
Merge pull request #147 from MuhammedKalkan/switch-to-nx
Run nx instead yarn
2023-05-30 00:25:27 +03:00
Jan-Otto Kröpke 4062b09783
Run nx instead yarn 2023-05-29 22:40:41 +02:00
MuhammedKalkan 77a6205469 Version updated to: 6.5.1 2023-05-29 18:24:56 +00:00
Muhammed Kalkan db82d7353f
Update main.yml 2023-05-29 16:10:44 +03:00
Muhammed Kalkan bb3e3245bf
Update main.yml 2023-05-29 15:34:16 +03:00
Muhammed Kalkan 0d68d0275b
Update main.yml 2023-05-26 23:04:30 +03:00
Muhammed Kalkan a8463b1e3c
Update main.yml 2023-05-26 22:42:17 +03:00
Muhammed Kalkan 390c75a6d1
Update main.yml 2023-05-26 21:55:15 +03:00
Muhammed Kalkan de52306024
Update update.js 2023-05-26 21:38:49 +03:00
Muhammed Kalkan 8a2ff66739
Update main.yml 2023-05-26 21:29:20 +03:00
MuhammedKalkan 85b2c63936 Version updated to: 6.5.0 2023-05-26 18:25:05 +00:00
MuhammedKalkan 1e013bcea4 Version updated to: 6.4.15 2023-04-13 01:37:42 +00:00
MuhammedKalkan 94d491e892 Version updated to: 6.5.0-alpha.4 2023-04-12 18:27:21 +00:00
MuhammedKalkan b7a14074bf Version updated to: 6.4.15 2023-04-06 12:39:58 +00:00
MuhammedKalkan e1265aefdd Version updated to: 6.4.14 2023-04-03 18:25:56 +00:00
MuhammedKalkan 59e0d047cb Version updated to: 6.4.13 2023-04-01 01:41:15 +00:00
MuhammedKalkan a49df3890e Version updated to: 6.4.12 2023-03-31 12:42:14 +00:00
MuhammedKalkan 0ea6c64f32 Version updated to: 6.4.11 2023-03-27 13:49:39 +00:00
MuhammedKalkan b16de96f2a Version updated to: 6.4.10 2023-03-22 18:28:02 +00:00
Muhammed Kalkan 0738110e12
Update main.yml 2023-03-17 21:32:17 +03:00
MuhammedKalkan ecfdd70eb2 Version updated to: 6.4.7 2023-03-17 18:27:58 +00:00
Muhammed Kalkan d7dd484f39
Merge pull request #135 from MuhammedKalkan/fix-build-error
Fix npmrc file and build commands
2023-03-16 11:47:51 +03:00
Muhammed b9a2e4871a Fix path 2023-03-16 11:21:08 +03:00
Muhammed c7fa4c2e9e Fix npmrc file and build commands 2023-03-16 11:17:26 +03:00
MuhammedKalkan 0c24991f21 Version updated to: 6.5.0-alpha.3 2023-03-15 18:29:45 +00:00
MuhammedKalkan 7c19442866 Version updated to: 6.5.0-alpha.2 2023-03-15 01:47:19 +00:00
MuhammedKalkan 885d105946 Version updated to: 6.5.0-alpha.1 2023-03-14 15:57:32 +00:00
MuhammedKalkan 99493f1f0a Version updated to: 6.4.6 2023-03-09 12:48:46 +00:00
MuhammedKalkan 2124ec74d0 Version updated to: 6.4.5 2023-03-08 14:58:13 +00:00
MuhammedKalkan 2f8d579856 Version updated to: 6.4.4 2023-03-07 18:30:45 +00:00
MuhammedKalkan 901f3fff57 Version updated to: 6.4.3 2023-03-07 02:03:38 +00:00
MuhammedKalkan bc2f587807 Version updated to: 6.4.2 2023-03-06 12:47:36 +00:00
MuhammedKalkan 1966c0b255 Version updated to: 6.4.1 2023-03-03 18:30:35 +00:00
MuhammedKalkan 95f71026ad Version updated to: 6.4.0 2023-03-01 18:30:47 +00:00
Muhammed Kalkan 205dd5d729
Update README.md 2023-03-01 14:29:34 +03:00
MuhammedKalkan f165f30fdd Version updated to: 6.4.0-beta.17 2023-02-25 01:54:58 +00:00
MuhammedKalkan 651fb9430b Version updated to: 6.4.0-beta.16 2023-02-24 01:52:41 +00:00
MuhammedKalkan 9b0687467f Version updated to: 6.4.0-beta.15 2023-02-23 01:51:53 +00:00
MuhammedKalkan 3ec2eec39f Version updated to: 6.4.0-beta.14 2023-02-22 18:30:17 +00:00
MuhammedKalkan e9b22dc678 Version updated to: 6.4.0-beta.13 2023-02-03 16:15:55 +00:00
jkroepke 494dbb60f9 Version updated to: 6.4.0-beta.12 2023-02-01 23:36:29 +00:00
Muhammed Kalkan d9d863785c
Create stale.yml 2023-01-31 15:10:22 +03:00
Muhammed Kalkan 5bfd4accc9
Merge pull request #116 from virtualex-itv/main
Update README.md
2023-01-30 17:38:59 +03:00
Alex López 87cffb25c8
Update README.md 2023-01-30 09:20:56 -05:00
MuhammedKalkan aa23c86b85 Version updated to: 6.4.0-beta.9 2023-01-30 12:47:26 +00:00
Muhammed Kalkan 7fc7af78d0
Update version 2023-01-30 15:20:13 +03:00
Muhammed Kalkan 960a6054f5
Update README.md 2023-01-30 12:51:54 +03:00
Muhammed Kalkan 804705ab62
Update README.md 2023-01-30 10:22:39 +03:00
Muhammed Kalkan dc28f4e6e6
Merge pull request #114 from lujiajing1126/main
Update hack script to adapt monorepo structure from upstream
2023-01-30 09:41:56 +03:00
Megrez Lu 04d185692d remove ls 2023-01-29 20:20:16 +08:00
Megrez Lu b6defb6220 update action-gh-release 2023-01-29 18:45:16 +08:00
Megrez Lu d211bacf5c fix lates*yaml 2023-01-29 18:44:10 +08:00
Megrez Lu 0048e42e30 remove ls 2023-01-29 18:38:33 +08:00
Megrez Lu a0f59473f2 fix workdir 2023-01-29 18:13:43 +08:00
Megrez Lu 1f8cc2139b hack for multiarch build 2023-01-29 17:45:06 +08:00
Megrez Lu 389a75b3a8 remove dependence on the EXTRA env 2023-01-29 16:15:04 +08:00
Megrez Lu 8729abbcf8 run build before run build:app 2023-01-29 15:01:11 +08:00
Megrez Lu 71fc287e56 avoid copy update.js and fix dist dir 2023-01-29 14:05:36 +08:00
Megrez Lu 6fd8e8d4cb use checkout@v3 to check upstream source and fix update.js 2023-01-29 13:52:31 +08:00
MuhammedKalkan d0046a87e9 Version updated to: 6.4.0-beta.9 2023-01-27 18:27:53 +00:00
MuhammedKalkan c19666fc56 Version updated to: 6.4.0-beta.6 2023-01-27 01:52:26 +00:00
Muhammed Kalkan 256731df94
Update main.yml 2023-01-26 21:59:49 +03:00
Muhammed Kalkan 5a82210195
Update main.yml 2023-01-26 21:55:11 +03:00
Muhammed Kalkan fa3e264357
Update update.js 2023-01-26 21:45:25 +03:00
MuhammedKalkan 7578dced4b Version updated to: 6.4.0-beta.5 2023-01-26 18:28:27 +00:00
MuhammedKalkan 3c306523f8 Version updated to: 6.4.0-alpha.4 2023-01-19 18:29:49 +00:00
MuhammedKalkan 20dd4894ea Version updated to: 6.3.0 2023-01-17 18:28:38 +00:00
MuhammedKalkan 1e654d6911 Version updated to: 6.4.0-alpha.3 2023-01-14 01:43:53 +00:00
MuhammedKalkan a6c8a92643 Version updated to: 6.4.0-alpha.2 2023-01-11 20:13:50 +00:00
Muhammed Kalkan b644c344d1
Merge pull request #90 from atsu85/patch-1
Add installation notes for linux
2023-01-03 17:46:09 +03:00
Ats Uiboupin b90c9fd0ef
Add installation notes for linux
Closes #89
2023-01-03 14:35:21 +02:00
Muhammed Kalkan 94567ab744
Update README.md 2023-01-01 20:47:54 +03:00
Muhammed Kalkan 25be590b8b
Update check.yml 2022-12-22 08:07:54 +03:00
MuhammedKalkan f01b3cefe3 Version updated to: 6.3.0 2022-12-22 05:02:55 +00:00
MuhammedKalkan 85f6e1e212 Version updated to: 2022-12-22 01:45:13 +00:00
12 changed files with 244 additions and 157 deletions

View File

@ -1,145 +0,0 @@
name: Build Lens
on:
workflow_dispatch:
push:
branches: [ main ]
paths-ignore:
- '**/README.md'
pull_request:
jobs:
build:
strategy:
matrix:
os: [ubuntu-20.04, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 360
steps:
- name: Checkout
uses: actions/checkout@v3.2.0
- name: Export version to variable
run: |
export LENS_VERSION=$(cat version)
echo "LENS_VERSION=$LENS_VERSION" >> $GITHUB_ENV
shell: bash
- uses: actions/setup-node@v3
with:
node-version: 16.16.0
- name: Update Lens
run: |
git clone https://github.com/lensapp/lens.git
cp update.js lens/update.js
cd lens
git checkout v${{ env.LENS_VERSION }}
node update.js
- name: Build Lens
run: |
mkdir releasefiles
if [ "$RUNNER_OS" == "Windows" ]; then
choco install visualstudio2019buildtools visualstudio2019-workload-vctools
fi
if [ "$RUNNER_OS" == "macOS" ]; then
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 }}.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 }}-mac.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
env ELECTRON_BUILDER_EXTRA_ARGS="--x64 --arm64" make build
cp dist/OpenLens-${{ env.LENS_VERSION }}.x86_64.AppImage releasefiles/OpenLens-${{ env.LENS_VERSION }}.AppImage
cp dist/OpenLens-${{ env.LENS_VERSION }}.amd64.deb releasefiles/OpenLens-${{ env.LENS_VERSION }}.deb
cp dist/OpenLens-${{ env.LENS_VERSION }}.x86_64.rpm releasefiles/OpenLens-${{ env.LENS_VERSION }}.rpm
cp dist/OpenLens-${{ env.LENS_VERSION }}.arm64.AppImage releasefiles/OpenLens-${{ env.LENS_VERSION }}.arm64.AppImage
cp dist/OpenLens-${{ env.LENS_VERSION }}.arm64.deb releasefiles/OpenLens-${{ env.LENS_VERSION }}.arm64.deb
cp dist/OpenLens-${{ env.LENS_VERSION }}.aarch64.rpm releasefiles/OpenLens-${{ env.LENS_VERSION }}.arm64.rpm
else
make build
cp dist/OpenLens*.exe releasefiles/OpenLens-${{ env.LENS_VERSION }}.exe
cp dist/OpenLens*.exe dist/OpenLens-${{ env.LENS_VERSION }}.exe
fi
shell: bash
working-directory: lens
env:
APPBUNDLEID: "io.kontena.lens-app"
APPLEID: ${{ secrets.APPLEID }}
APPLEIDPASS: ${{ secrets.APPLEIDPASS }}
CSC_LINK: ${{ runner.os == 'macos' && secrets.CSC_LINK || secrets.CSC_LINK_WIN }}
CSC_KEY_PASSWORD: ${{ runner.os == 'macos' && secrets.CSC_KEY_PASSWORD || secrets.CSC_KEY_PASSWORD_WIN}}
CSC_LINK_WIN: ${{ secrets.CSC_LINK_WIN }}
CSC_KEY_PASSWORD_WIN: ${{ secrets.CSC_KEY_PASSWORD_WIN }}
WIN_CSC_LINK: ${{ secrets.CSC_LINK_WIN }}
WIN_CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD_WIN }}
CSC_FOR_PULL_REQUEST: true
- name: Calculate SHA256 checksum
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
certutil -hashfile OpenLens-${{ env.LENS_VERSION }}.exe SHA256 | tee OpenLens-${{ env.LENS_VERSION }}.exe.sha256
else
for filename in OpenLens-${{ env.LENS_VERSION }}*; do shasum -a 256 ${filename} | tee ${filename}.sha256 ; done
fi
shell: bash
working-directory: lens/dist
- uses: actions/upload-artifact@v3
if: github.ref != 'refs/heads/main'
with:
name: OpenLens-${{ matrix.os }}
retention-days: 5
path: |
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.dmg
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.AppImage
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.deb
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.rpm
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.zip
lens/dist/OpenLens-${{ env.LENS_VERSION }}.exe
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.sha256
- name: Generate Changelog
run: curl -s https://api.github.com/repos/lensapp/lens/releases/latest | jq -r 'select(.prerelease == false) | .body[0:]' > ${{ github.workspace }}-CHANGELOG.txt
- name: Release
uses: softprops/action-gh-release@v0.1.14
if: github.ref == 'refs/heads/main'
with:
tag_name: v${{ env.LENS_VERSION }}
body_path: ${{ github.workspace }}-CHANGELOG.txt
files: |
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.dmg
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.AppImage
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.deb
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.rpm
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.zip
lens/dist/OpenLens-${{ env.LENS_VERSION }}.exe
lens/dist/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-${{ env.LENS_VERSION }}*.dmg
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.AppImage
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.deb
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.rpm
lens/dist/OpenLens-${{ env.LENS_VERSION }}*.zip
lens/dist/OpenLens.Setup.${{ env.LENS_VERSION }}.exe
lens/dist/lates*.yml

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
.DS_Store
README.md
/lens/

View File

@ -1,10 +1,16 @@
# OpenLens Build Repo
> [!CAUTION]
> Lens Closed its source code. So please do not expect any more updates.
[![Build Lens](https://github.com/MuhammedKalkan/OpenLens/actions/workflows/main.yml/badge.svg)](https://github.com/MuhammedKalkan/OpenLens/actions/workflows/main.yml)
# OpenLens Build Repo
## Build Repo Only
This repo **ONLY PROVIDES SIGNED BINARIES AND DOES NOT ALTER SOURCE CODE** for the OpenLens repo. For software issues regarding OpenLens or the Lens IDE, go to the [Lens repo](https://github.com/lensapp/lens/issues) and open an issue there.
## Extensions
Starting with 6.3.0 some extensions are removed from Lens. To install these most used extensions simply type **@alebcay/openlens-node-pod-menu** into the Extensions page in the OpenLens menu and it should install automatically. If you see the extension rapidly toggling between `enabled` and `disabled`, restart OpenLens and enable it in the Extension page.
For sources please refer [here](https://www.npmjs.com/package/@alebcay/openlens-node-pod-menu)
## Overview
This is the Binary Build Repo for the [Lens repository](https://github.com/lensapp/lens.git) aka **OpenLens**. This build only includes the open source part of the Lens IDE and does not require login. This repo was created due to lensapp/lens#5444.
@ -32,6 +38,12 @@ Go to [Releases](https://github.com/MuhammedKalkan/OpenLens/releases) and downlo
```
brew install --cask openlens
```
### Linux
Download and install appropriate package
(`.rpm`, `.deb` or `.AppImage`)
and install based on available package manager.
### Windows
#### Scoop
@ -43,11 +55,19 @@ scoop install openlens
```
winget install openlens
```
#### Chocolatey
```
choco install -y openlens
```
For alpha/beta builds:
```
choco install -y openlens --pre
```
## Thanks
Big Thanks to
[Ebby Peter](https://github.com/ebbypeter)
,
[Xaver Lohmüller](https://github.com/xavierLowmiller)
and those who all supported to raise funds, for their contributions to signing the app for the community
and those who all supported to raise funds, for their contributions to sign the app for the community

View File

@ -0,0 +1,17 @@
const archMap = {
"amd64": "x86_64",
"arm64": "aarch64",
}
module.exports = async (buildContext) => {
if (buildContext.platform.name !== "linux") return true
if (buildContext.arch in archMap) {
process.env.CC = `${archMap[buildContext.arch]}-linux-gnu-gcc`
process.env.CXX = `${archMap[buildContext.arch]}-linux-gnu-g++`
} else {
process.env.CC = "gcc"
process.env.CXX = "g++"
}
return true
}

61
github/stale.yml Normal file
View File

@ -0,0 +1,61 @@
# Configuration for probot-stale - https://github.com/probot/stale
# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 60
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
daysUntilClose: 7
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
onlyLabels: []
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels:
- pinned
- security
- "[Status] Maybe Later"
# Set to true to ignore issues in a project (defaults to false)
exemptProjects: false
# Set to true to ignore issues in a milestone (defaults to false)
exemptMilestones: false
# Set to true to ignore issues with an assignee (defaults to false)
exemptAssignees: false
# Label to use when marking as stale
staleLabel: wontfix
# Comment to post when marking as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when removing the stale label.
# unmarkComment: >
# Your comment here.
# Comment to post when closing a stale Issue or Pull Request.
# closeComment: >
# Your comment here.
# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun: 30
# Limit to only `issues` or `pulls`
# only: issues
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
# pulls:
# daysUntilStale: 30
# markComment: >
# This pull request has been automatically marked as stale because it has not had
# recent activity. It will be closed if no further activity occurs. Thank you
# for your contributions.
# issues:
# exemptLabels:
# - confirmed

View File

@ -10,14 +10,13 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3.2.0
uses: actions/checkout@v3
with:
token: ${{ secrets.PAT }}
- name: Get the latest version of Lens
run: |
curl -s https://api.github.com/repos/lensapp/lens/releases/latest | jq -r 'select(.prerelease == false) | .tag_name[1:]' > version
export LENS_VERSION=$(cat version)
echo "LENS_VERSION=$LENS_VERSION" >> $GITHUB_ENV
curl -s https://api.github.com/repos/lensapp/lens/releases | jq -r '[.[] | select(.prerelease == false)][0] | .tag_name[1:]' > version
echo "LENS_VERSION=$(cat version)" >> $GITHUB_ENV
- name: Add & Commit
uses: EndBug/add-and-commit@v9.1.1
with:

120
github/workflows/main.yml Normal file
View File

@ -0,0 +1,120 @@
name: Build Lens
on:
workflow_dispatch:
push:
branches: [main]
paths-ignore:
- "**/README.md"
pull_request:
jobs:
build:
strategy:
matrix:
os: [ ubuntu-20.04, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
timeout-minutes: 360
env:
BUILD_ID: ${{ github.run_number }}
steps:
- name: Checkout OpenLens
uses: actions/checkout@v3
- name: Export version to variable
run: echo "LENS_VERSION=$(cat version)" >> $GITHUB_ENV
shell: bash
- uses: actions/setup-node@v3
with:
node-version: "16.x"
- name: Checkout Upstream Lens
uses: actions/checkout@v3
with:
repository: lensapp/lens
path: lens
ref: v${{ env.LENS_VERSION }}
fetch-depth: 1
- name: Patch Upstream Lens
run: node update.js
- name: Build Lens
run: |
npm run all:install
# Avoid npm install from electron-builder
# ref: https://github.com/electron-userland/electron-builder/blob/80a3ae857b9305aff1774e1b2b932601af50231b/packages/app-builder-lib/src/util/yarn.ts#L11-L16
mkdir -p open-lens/node_modules
if [ "${CSC_LINK}" = "" ] || [ "${CSC_KEY_PASSWORD}" = "" ]; then
unset CSC_LINK
unset CSC_KEY_PASSWORD
fi
if [ "$RUNNER_OS" == "Windows" ]; then
npx nx run open-lens:build:app --win nsis msi portable
elif [ "$RUNNER_OS" == "Linux" ]; then
sudo apt update
sudo apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu -y
npx nx run open-lens:build:app --x64 --arm64
find . -name '*pty.node' -print0 | xargs -0 file
else
npx nx run open-lens:build:app --x64 --arm64
find . -name '*pty.node' -print0 | xargs -0 file
fi
rm -f open-lens/dist/*blockmap{,*}
shell: bash
working-directory: lens
env:
APPBUNDLEID: "io.kontena.lens-app"
APPLEID: ${{ secrets.APPLEID }}
APPLEIDPASS: ${{ secrets.APPLEIDPASS }}
CSC_LINK: ${{ runner.os == 'macos' && secrets.CSC_LINK || secrets.CSC_LINK_WIN }}
CSC_KEY_PASSWORD: ${{ runner.os == 'macos' && secrets.CSC_KEY_PASSWORD || secrets.CSC_KEY_PASSWORD_WIN }}
CSC_LINK_WIN: ${{ secrets.CSC_LINK_WIN }}
CSC_KEY_PASSWORD_WIN: ${{ secrets.CSC_KEY_PASSWORD_WIN }}
WIN_CSC_LINK: ${{ secrets.CSC_LINK_WIN }}
WIN_CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD_WIN }}
CSC_FOR_PULL_REQUEST: true
DOWNLOAD_ALL_ARCHITECTURES: ${{ runner.os != 'Windows' }}
- name: Calculate SHA256 checksum
run: |-
if command -v shasum 2>/dev/null 1>&2; then
for filename in OpenLens*; do shasum -a 256 "${filename}" | tee "${filename}.sha256" ; done
else
for filename in OpenLens*; do certutil -hashfile "${filename}" SHA256 | tee "${filename}.sha256" ; done
fi
shell: bash
working-directory: lens/open-lens/dist
- uses: actions/upload-artifact@v3
if: github.ref != 'refs/heads/main'
with:
name: OpenLens-${{ matrix.os }}
retention-days: 5
path: lens/open-lens/dist/OpenLens*${{ env.LENS_VERSION }}-${{ env.BUILD_ID }}*.*
- name: Generate Changelog
run: curl -s https://api.github.com/repos/lensapp/lens/releases/latest | jq -r 'select(.prerelease == false) | .body[0:]' > ${{ github.workspace }}-CHANGELOG.txt
- name: Release
uses: softprops/action-gh-release@v0.1.15
if: github.ref == 'refs/heads/main'
with:
tag_name: v${{ env.LENS_VERSION }}-${{ env.BUILD_ID }}
body_path: ${{ github.workspace }}-CHANGELOG.txt
files: lens/open-lens/dist/OpenLens*${{ env.LENS_VERSION }}-${{ env.BUILD_ID }}*.*
- name: Latest
uses: softprops/action-gh-release@v0.1.15
if: github.ref == 'refs/heads/main'
with:
tag_name: Latest
files: |
lens/open-lens/dist/OpenLens*${{ env.LENS_VERSION }}-${{ env.BUILD_ID }}*.*
#lens/open-lens/dist/lates*.yml

View File

@ -1,12 +1,26 @@
const fs = require('fs');
var packagejson = require('./package.json');
const packageJsonOpenLens = require('./lens/open-lens/package.json');
packagejson.build.publish = [{
packageJsonOpenLens.build.publish = [{
url: "https://github.com/MuhammedKalkan/OpenLens/releases/download/Latest",
provider: "generic"
}];
packagejson.build.win.artifactName = "OpenLens.Setup.${version}.${ext}";
packageJsonOpenLens.version = `${packageJsonOpenLens.version}-${process.env.BUILD_ID}`;
packageJsonOpenLens.build.npmRebuild = true;
packageJsonOpenLens.build.detectUpdateChannel = false;
packageJsonOpenLens.build.beforeBuild = '../../build-hooks/beforeBuild';
fs.writeFileSync('package.json', JSON.stringify(packagejson));
delete packageJsonOpenLens.scripts.postinstall;
packageJsonOpenLens.copyright = [
packageJsonOpenLens.copyright,
'',
'Binary application builds @ MuhammedKalkan/OpenLens',
'by Muhammed Kalkan, Jan-Otto Kröpke, Ebby Peter, Xaver Lohmüller'
].join("\r\n")
console.log(`Set build version: ${packageJsonOpenLens.version}`)
fs.writeFileSync('./lens/open-lens/package.json', JSON.stringify(packageJsonOpenLens, null, 2));

View File

@ -1 +1 @@
6.3.0
2024.1.300751-latest