1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Generate tray icons on a schedule

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-02-02 12:38:33 -05:00
parent 5002b450fd
commit 4ce2df86f5
26 changed files with 34 additions and 4 deletions

29
.github/workflows/update-tray-icons.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Update Tray Icons
on:
schedule:
- cron: 0 1 * * 1-5 # 1 am every work day
workflow_dispatch:
jobs:
update:
name: Update icons
runs-on: ubuntu-latest
steps:
- name: Checkout Release from lens
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install deps
run: yarn install --frozen-lockfile
- name: Build new icons
run: yarn build:tray-icons
working-directory: packages/open-lens
- uses: peter-evans/create-pull-request@v4
if: ${{ steps.has.outputs.CHANGES == true }}
with:
add-paths: build/tray/*
commit-message: Update tray icons
signoff: true
delete-branch: true
branch: cron-update-tray-icons
title: Update tray icons
labels: chore

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 724 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 498 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 993 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 717 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 520 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 466 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -20,21 +20,22 @@
"scripts": {
"clean": "rimraf binaries/ dist/ static/build",
"build": "npm run compile",
"postbuild": "npm run build:tray-icons && npm run download:binaries",
"postbuild": "npm run copy-tray-icons && npm run download:binaries",
"build:app": "electron-builder --publish onTag",
"prebuild:app": "run-script-os",
"prebuild:app:default": "exit 0",
"prebuild:app:win32": "rimraf node_modules/win-ca/pem",
"build:dir": "npm run compile && electron-builder --dir",
"compile": "cross-env NODE_ENV=production webpack --config webpack/webpack.ts --progress",
"postcompile": "npm run build:tray-icons && npm run download:binaries",
"predev": "rimraf static/build/ && npm run build:tray-icons && npm run download:binaries",
"postcompile": "npm run copy-tray-icons && npm run download:binaries",
"predev": "rimraf static/build/ && npm run copy-tray-icons && npm run download:binaries",
"dev": "concurrently -i -k \"yarn run dev-run -C\" yarn:dev:*",
"dev-run": "nodemon --watch ./static/build/main.js --exec \"electron --remote-debugging-port=9223 --inspect .\"",
"dev:main": "cross-env NODE_ENV=development webpack --config webpack/main.ts --progress --watch",
"dev:renderer": "cross-env NODE_ENV=development ts-node ./webpack/dev-server.ts",
"test:integration": "jest -xyz --runInBand --detectOpenHandles --forceExit --modulePaths=[\"<rootDir>/integration/\"];",
"build:tray-icons": "generate-tray-icons --output ./static/build/tray --input ./node_modules/@k8slens/core/src/renderer/components/icon/logo-lens.svg --notice-icon ./node_modules/@k8slens/core/src/renderer/components/icon/notice.svg --spinner-icon ./node_modules/@k8slens/core/src/renderer/components/icon/arrow-spinner.svg",
"copy-tray-icons": "cp ./build/tray/* ./static/build/tray",
"build:tray-icons": "generate-tray-icons --output ./build/tray --input ./node_modules/@k8slens/core/src/renderer/components/icon/logo-lens.svg --notice-icon ./node_modules/@k8slens/core/src/renderer/components/icon/notice.svg --spinner-icon ./node_modules/@k8slens/core/src/renderer/components/icon/arrow-spinner.svg",
"download:binaries": "ensure-binaries --package ./package.json --base-dir ./binaries/client"
},
"config": {