Skip to content

Commit

Permalink
Merge branch 'bump'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jbithell committed Apr 7, 2023
2 parents 342c044 + d775f93 commit 33708ea
Show file tree
Hide file tree
Showing 18 changed files with 1,573 additions and 11,985 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docusaurus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
node-version: 18
cache: npm
- name: Setup Pages
id: pages
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/electron-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
cache: npm
- run: npm install
- if: matrix.os == 'windows-latest'
uses: microsoft/setup-msbuild@v1.1
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/electron-test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install
node-version: 18
cache: npm
- run: npm install
- if: matrix.os == 'windows-latest'
uses: microsoft/setup-msbuild@v1.1
- run: npm run make
Expand Down
11 changes: 8 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@
"version": "0.2.0",
"configurations": [
{
"command": "npm start",
"name": "Run npm start",
"type": "node",
"request": "launch",
"type": "node-terminal",
"cwd": "${workspaceRoot}",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script", "start"
],
"env": {
"DEV_MODE": "true"
}
},
"console": "integratedTerminal",
}
]
}
68 changes: 0 additions & 68 deletions forge.config.js

This file was deleted.

63 changes: 63 additions & 0 deletions forge.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
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 { WebpackPlugin } from '@electron-forge/plugin-webpack'

import { mainConfig } from './webpack.main.config'
import { rendererConfig } from './webpack.renderer.config'
import MakerDMG from '@electron-forge/maker-dmg'
import PublisherGithub from '@electron-forge/publisher-github'

const config: ForgeConfig = {
packagerConfig: {},
rebuildConfig: {},
makers: [
new MakerSquirrel({}),
new MakerZIP({}, ['darwin']),
new MakerDeb({
options: {
maintainer: 'James Bithell',
homepage: 'https://github.com/Jbithell/ParadisePi',
icon: 'icon/favicon.ico',
name: 'Paradise Pi',
},
}),
new MakerDMG({
icon: 'icon/favicon.ico',
name: 'Paradise Pi',
}),
],
publishers: [
new PublisherGithub({
repository: {
owner: 'Paradise-Pi',
name: 'ParadisePi',
},
draft: true,
}),
],
plugins: [
new WebpackPlugin({
mainConfig,
renderer: {
config: rendererConfig,
nodeIntegration: false,
jsonStats: true,
entryPoints: [
{
nodeIntegration: false,
html: './src/app/index.html',
js: './src/app/app.tsx',
name: 'main_window',
preload: {
js: './src/electron/preload.ts',
},
},
],
},
}),
],
}

export default config
Loading

0 comments on commit 33708ea

Please sign in to comment.