From bd2948c2863be18d562e22a354e63876e8e9a571 Mon Sep 17 00:00:00 2001 From: GreenAppers Date: Wed, 25 Sep 2024 13:01:24 -0700 Subject: [PATCH] Update build workflow --- .github/workflows/build.yaml | 12 ++--------- README.md | 5 +++++ forge.config.ts | 39 +++++++++++++++++++++++------------- src/components/App.tsx | 2 +- 4 files changed, 33 insertions(+), 25 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 90d22fe..a604acb 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -19,13 +19,5 @@ jobs: with: node-version: 18.20.0 - - name: Build/release Electron app - uses: samuelmeuli/action-electron-builder@v1 - with: - # GitHub token, automatically provided to the action - # (No need to define this secret in the repo settings) - github_token: ${{ secrets.github_token }} - - # If the commit is tagged with a version (e.g. "v1.0.0"), - # release the app after building - release: ${{ startsWith(github.ref, 'refs/tags/v') }} + - name: Build app + run: yarn && yarn build diff --git a/README.md b/README.md index 5f01cb2..8238e9d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # 🥧📡 Anti/PieRay Helper +- Setup bind for [Lunar Client](https://www.lunarclient.com/) mod [Coordinates](https://lunarclient.dev/apollo/developers/mods/coordinates) to "Copy Coords to Clipboard". +- Move to a "corner" showing the entity in PieChart, but where the entity is missing from PieChart in the adjacent chunks in the X and Z directions. +- Copy the coordinates to the clipboard and the corner will be added. +- Find two more corners: one with the same X chunk coordinate, one with the same Z chunk coordinate. +- The solution is added. diff --git a/forge.config.ts b/forge.config.ts index 1ec790d..b72eaed 100644 --- a/forge.config.ts +++ b/forge.config.ts @@ -1,15 +1,15 @@ -import type { ForgeConfig } from '@electron-forge/shared-types'; -import { MakerSquirrel } from '@electron-forge/maker-squirrel'; -import { MakerZIP } from '@electron-forge/maker-zip'; -import { MakerDeb } from '@electron-forge/maker-deb'; -import { MakerRpm } from '@electron-forge/maker-rpm'; -import { AutoUnpackNativesPlugin } from '@electron-forge/plugin-auto-unpack-natives'; -import { WebpackPlugin } from '@electron-forge/plugin-webpack'; -import { FusesPlugin } from '@electron-forge/plugin-fuses'; -import { FuseV1Options, FuseVersion } from '@electron/fuses'; +import type { ForgeConfig } from '@electron-forge/shared-types' +import { MakerSquirrel } from '@electron-forge/maker-squirrel' +import { MakerZIP } from '@electron-forge/maker-zip' +import { MakerDeb } from '@electron-forge/maker-deb' +import { MakerRpm } from '@electron-forge/maker-rpm' +import { AutoUnpackNativesPlugin } from '@electron-forge/plugin-auto-unpack-natives' +import { WebpackPlugin } from '@electron-forge/plugin-webpack' +import { FusesPlugin } from '@electron-forge/plugin-fuses' +import { FuseV1Options, FuseVersion } from '@electron/fuses' -import { mainConfig } from './webpack.main.config'; -import { rendererConfig } from './webpack.renderer.config'; +import { mainConfig } from './webpack.main.config' +import { rendererConfig } from './webpack.renderer.config' const config: ForgeConfig = { packagerConfig: { @@ -17,7 +17,18 @@ const config: ForgeConfig = { icon: './images/icon', }, rebuildConfig: {}, - makers: [new MakerSquirrel({}), new MakerZIP({}, ['darwin']), new MakerRpm({}), new MakerDeb({})], + makers: [ + new MakerSquirrel({ + iconUrl: + 'https://github.com/GreenAppers/PieRayHelper/blob/40994396962b8a4a269fb6bb24530c5cfc0b0102/images/icon.png', + setupIcon: './images/icon.ico', + }), + new MakerZIP({}, ['darwin']), + new MakerRpm({}), + new MakerDeb({ + options: { icon: './images/icon.png' }, + }), + ], plugins: [ new AutoUnpackNativesPlugin({}), new WebpackPlugin({ @@ -48,6 +59,6 @@ const config: ForgeConfig = { [FuseV1Options.OnlyLoadAppFromAsar]: true, }), ], -}; +} -export default config; +export default config diff --git a/src/components/App.tsx b/src/components/App.tsx index deae8c5..6c88491 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -189,7 +189,7 @@ function App() { - Copy the coordinates to the clipboard and the corner will be added + Copy the coordinates to the clipboard and the corner will be added.