Generate tray icons on a schedule
Signed-off-by: Sebastian Malton <sebastian@malton.name>
29
.github/workflows/update-tray-icons.yml
vendored
Normal 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
|
||||
BIN
packages/open-lens/build/tray/trayIcon.png
Normal file
|
After Width: | Height: | Size: 392 B |
BIN
packages/open-lens/build/tray/trayIcon@2x.png
Normal file
|
After Width: | Height: | Size: 724 B |
BIN
packages/open-lens/build/tray/trayIcon@3x.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
packages/open-lens/build/tray/trayIcon@4x.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
packages/open-lens/build/tray/trayIconCheckingForUpdates.png
Normal file
|
After Width: | Height: | Size: 498 B |
BIN
packages/open-lens/build/tray/trayIconCheckingForUpdates@2x.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
packages/open-lens/build/tray/trayIconCheckingForUpdates@3x.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
packages/open-lens/build/tray/trayIconCheckingForUpdates@4x.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 442 B |
|
After Width: | Height: | Size: 993 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
BIN
packages/open-lens/build/tray/trayIconTemplate.png
Normal file
|
After Width: | Height: | Size: 397 B |
BIN
packages/open-lens/build/tray/trayIconTemplate@2x.png
Normal file
|
After Width: | Height: | Size: 717 B |
BIN
packages/open-lens/build/tray/trayIconTemplate@3x.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
packages/open-lens/build/tray/trayIconTemplate@4x.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
packages/open-lens/build/tray/trayIconUpdateAvailable.png
Normal file
|
After Width: | Height: | Size: 520 B |
BIN
packages/open-lens/build/tray/trayIconUpdateAvailable@2x.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
packages/open-lens/build/tray/trayIconUpdateAvailable@3x.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
packages/open-lens/build/tray/trayIconUpdateAvailable@4x.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 466 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
@ -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": {
|
||||
|
||||