Skip to content

Commit

Permalink
Update build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenAppers committed Sep 25, 2024
1 parent 4099439 commit bd2948c
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 25 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
39 changes: 25 additions & 14 deletions forge.config.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,34 @@
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: {
asar: true,
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({
Expand Down Expand Up @@ -48,6 +59,6 @@ const config: ForgeConfig = {
[FuseV1Options.OnlyLoadAppFromAsar]: true,
}),
],
};
}

export default config;
export default config
2 changes: 1 addition & 1 deletion src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function App() {
<ListIcon color="green.500">
<CheckIcon />
</ListIcon>
Copy the coordinates to the clipboard and the corner will be added
Copy the coordinates to the clipboard and the corner will be added.
</ListItem>
<ListItem>
<ListIcon color="green.500">
Expand Down

0 comments on commit bd2948c

Please sign in to comment.