Compare commits
152 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
a7d44fba75 | |
|
|
03b3f94661 | |
|
|
ea015ca86f | |
|
|
69e11a872e | |
|
|
583a606ee3 | |
|
|
46e3bfe503 | |
|
|
0f102c4f64 | |
|
|
32fca4b84b | |
|
|
8cb4107664 | |
|
|
c4b099462f | |
|
|
ed93e90606 | |
|
|
391c2cd111 | |
|
|
a2d9d20044 | |
|
|
7c226405b1 | |
|
|
d87072ab17 | |
|
|
d66845b79f | |
|
|
eeecbfe469 | |
|
|
2ef129c6d5 | |
|
|
4062b09783 | |
|
|
77a6205469 | |
|
|
db82d7353f | |
|
|
bb3e3245bf | |
|
|
0d68d0275b | |
|
|
a8463b1e3c | |
|
|
390c75a6d1 | |
|
|
de52306024 | |
|
|
8a2ff66739 | |
|
|
85b2c63936 | |
|
|
1e013bcea4 | |
|
|
94d491e892 | |
|
|
b7a14074bf | |
|
|
e1265aefdd | |
|
|
59e0d047cb | |
|
|
a49df3890e | |
|
|
0ea6c64f32 | |
|
|
b16de96f2a | |
|
|
0738110e12 | |
|
|
ecfdd70eb2 | |
|
|
d7dd484f39 | |
|
|
b9a2e4871a | |
|
|
c7fa4c2e9e | |
|
|
0c24991f21 | |
|
|
7c19442866 | |
|
|
885d105946 | |
|
|
99493f1f0a | |
|
|
2124ec74d0 | |
|
|
2f8d579856 | |
|
|
901f3fff57 | |
|
|
bc2f587807 | |
|
|
1966c0b255 | |
|
|
95f71026ad | |
|
|
205dd5d729 | |
|
|
f165f30fdd | |
|
|
651fb9430b | |
|
|
9b0687467f | |
|
|
3ec2eec39f | |
|
|
e9b22dc678 | |
|
|
494dbb60f9 | |
|
|
d9d863785c | |
|
|
5bfd4accc9 | |
|
|
87cffb25c8 | |
|
|
aa23c86b85 | |
|
|
7fc7af78d0 | |
|
|
960a6054f5 | |
|
|
804705ab62 | |
|
|
dc28f4e6e6 | |
|
|
04d185692d | |
|
|
b6defb6220 | |
|
|
d211bacf5c | |
|
|
0048e42e30 | |
|
|
a0f59473f2 | |
|
|
1f8cc2139b | |
|
|
389a75b3a8 | |
|
|
8729abbcf8 | |
|
|
71fc287e56 | |
|
|
6fd8e8d4cb | |
|
|
d0046a87e9 | |
|
|
c19666fc56 | |
|
|
256731df94 | |
|
|
5a82210195 | |
|
|
fa3e264357 | |
|
|
7578dced4b | |
|
|
3c306523f8 | |
|
|
20dd4894ea | |
|
|
1e654d6911 | |
|
|
a6c8a92643 | |
|
|
b644c344d1 | |
|
|
b90c9fd0ef | |
|
|
94567ab744 | |
|
|
25be590b8b | |
|
|
f01b3cefe3 | |
|
|
85f6e1e212 | |
|
|
c5d2196392 | |
|
|
f5efe0651f | |
|
|
b041792ef9 | |
|
|
6a8174823a | |
|
|
6284a110e7 | |
|
|
b647a8d651 | |
|
|
b894351931 | |
|
|
d4b48fb9e5 | |
|
|
dc31c1400b | |
|
|
58e13820b9 | |
|
|
58f59debd9 | |
|
|
3d8f2ec657 | |
|
|
ab745bab0d | |
|
|
e3bff48668 | |
|
|
2ab47a0819 | |
|
|
3667498565 | |
|
|
89c5ebccd7 | |
|
|
70931a4063 | |
|
|
b0620e3885 | |
|
|
4313042585 | |
|
|
9d0f3821b2 | |
|
|
4b9aecbbec | |
|
|
064ce92cc9 | |
|
|
404da92607 | |
|
|
af84aff153 | |
|
|
fca6ccfde2 | |
|
|
ab4d6557ef | |
|
|
edcf6bf113 | |
|
|
8250dced8b | |
|
|
4a04d5b336 | |
|
|
3a660bc599 | |
|
|
4955f02db6 | |
|
|
c774ff504b | |
|
|
bb96a6abba | |
|
|
4dc40be8ab | |
|
|
0ff1c7f2e0 | |
|
|
fe9ac1a56b | |
|
|
81e4d5afa9 | |
|
|
aecd9d2c97 | |
|
|
edd9af5ebd | |
|
|
444f000179 | |
|
|
8c78ef89a4 | |
|
|
dccdceba66 | |
|
|
67938d0d93 | |
|
|
c6fcbb650b | |
|
|
0d76a4ce62 | |
|
|
ba7b9787b0 | |
|
|
383ed3d661 | |
|
|
5d6c21498c | |
|
|
ed0bb009b8 | |
|
|
deb5e3f900 | |
|
|
6f5cbba592 | |
|
|
ceed87ad07 | |
|
|
a011edea7f | |
|
|
21ccd93a45 | |
|
|
beaa792713 | |
|
|
3ecd771dc9 | |
|
|
c49cc7bd54 | |
|
|
33e6a8c9f0 | |
|
|
3d815757ae |
|
|
@ -1,139 +0,0 @@
|
|||
name: Build Lens
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ main ]
|
||||
paths-ignore:
|
||||
- '**/README.md'
|
||||
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,2 +1,3 @@
|
|||
.DS_Store
|
||||
README.md
|
||||
/lens/
|
||||
|
|
|
|||
40
README.md
40
README.md
|
|
@ -1,9 +1,15 @@
|
|||
> [!CAUTION]
|
||||
> Lens Closed its source code. So please do not expect any more updates.
|
||||
|
||||
# OpenLens Build Repo
|
||||
|
||||
[](https://github.com/MuhammedKalkan/OpenLens/actions/workflows/main.yml)
|
||||
|
||||
## Build Repo Only
|
||||
This is repo **only provides binaries** 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 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
|
||||
|
||||
|
|
@ -32,8 +38,36 @@ 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
|
||||
```
|
||||
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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
@ -10,15 +10,14 @@ jobs:
|
|||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3.0.2
|
||||
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.0.0
|
||||
uses: EndBug/add-and-commit@v9.1.1
|
||||
with:
|
||||
message: 'Version updated to: ${{ env.LENS_VERSION }}'
|
||||
|
|
@ -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
|
||||
22
update.js
22
update.js
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue