Compare commits

..

No commits in common. "main" and "v6.1.10" have entirely different histories.

12 changed files with 155 additions and 290 deletions

View File

@ -10,14 +10,15 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v3.0.2
with:
token: ${{ secrets.PAT }}
- name: Get the latest version of Lens
run: |
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
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
- name: Add & Commit
uses: EndBug/add-and-commit@v9.1.1
uses: EndBug/add-and-commit@v9.0.0
with:
message: 'Version updated to: ${{ env.LENS_VERSION }}'

View File

@ -4,8 +4,6 @@ on:
workflow_dispatch:
push:
branches: [ main ]
paths-ignore:
- '**/README.md'
jobs:
build:

137
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,137 @@
name: Build Lens
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 360
steps:
- name: Checkout
uses: actions/checkout@v3.0.2
- 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 }}-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
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
fi
shell: bash
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
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/releasefiles
- uses: actions/upload-artifact@v3
if: github.ref != 'refs/heads/main'
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
- 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
- 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

1
.gitignore vendored
View File

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

View File

@ -1,73 +1,15 @@
> [!CAUTION]
> Lens Closed its source code. So please do not expect any more updates.
# OpenLens
# OpenLens Build Repo
[![Build Lens](https://github.com/MuhammedKalkan/OpenLens/actions/workflows/main.yml/badge.svg)](https://github.com/MuhammedKalkan/OpenLens/actions/workflows/main.yml)
## 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.
This is the Binary Build Repo for Lens Repository located here : https://github.com/lensapp/lens.git
## Extensions
However, this build does not require you to log in and includes only open source part. Download and use as is.
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)
Go To Releases to download your binary of type Linux , MacOS or Windows
## Overview
If you have trouble about not seeing pod logs, remove old config files / extensions remaining from old Lens app.
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.
**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
Download and use as is. If you have trouble about not seeing pod logs, remove old config files / extensions remaining from old Lens app.
Auto Updater is now live starting with every binary downloaded with the `Latest` tag or the corresponding release assets.
### OpenLens vs Lens IDE
Paraphrasing from the [OpenLens README](https://github.com/lensapp/lens#readme)
#### OpenLens
The [OpenLens repository](https://github.com/lensapp/lens.git), is where Team Lens (Mirantis) develops the [Lens IDE](https://k8slens.dev/) product together with the community. It is backed by a number of Kubernetes and cloud native ecosystem pioneers. This source code is available to everyone under the [MIT license](https://github.com/lensapp/lens/blob/master/LICENSE).
#### Lens IDE
The Kubernetes management tool [Lens IDE](https://k8slens.dev/) is a distribution of the OpenLens repository with Team Lens specific customizations released under a traditional EULA.
## Installation
### Manual
Go to [Releases](https://github.com/MuhammedKalkan/OpenLens/releases) and download the relevant binary for your system.
### MacOS
#### Homebrew
```
brew install --cask openlens
```
### Linux
Download and install appropriate package
(`.rpm`, `.deb` or `.AppImage`)
and install based on available package manager.
### Windows
#### Scoop
```
scoop bucket add extras
scoop install openlens
```
#### Winget
```
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 sign the app for the community
**NOTE:** Auto Updater is now live starting with every binary downloaded from Latest tag or the corresponding release assets.

View File

@ -1,17 +0,0 @@
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
}

View File

@ -1,61 +0,0 @@
# 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

@ -1,120 +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
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,26 +1,12 @@
const fs = require('fs');
const packageJsonOpenLens = require('./lens/open-lens/package.json');
var packagejson = require('./package.json');
packageJsonOpenLens.build.publish = [{
packagejson.build.publish = [{
url: "https://github.com/MuhammedKalkan/OpenLens/releases/download/Latest",
provider: "generic"
}];
packageJsonOpenLens.version = `${packageJsonOpenLens.version}-${process.env.BUILD_ID}`;
packageJsonOpenLens.build.npmRebuild = true;
packageJsonOpenLens.build.detectUpdateChannel = false;
packageJsonOpenLens.build.beforeBuild = '../../build-hooks/beforeBuild';
packagejson.build.win.artifactName = "OpenLens.Setup.${version}.${ext}";
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));
fs.writeFileSync('package.json', JSON.stringify(packagejson));

View File

@ -1 +1 @@
2024.1.300751-latest
6.1.10