Skip to content

Commit c44cc61

Browse files
author
Avenita
committed
Add GitHub publisher configuration and update dependencies
- Integrated `@electron-forge/publisher-github` for streamlined GitHub releases. - Updated `package.json` and `package-lock.json` to include the new publisher dependency. - Enhanced `forge.config.ts` to configure GitHub publishing options, including repository details and authentication token. - Added new build scripts for Linux and Windows platforms to facilitate cross-platform packaging.
1 parent 50bd85d commit c44cc61

File tree

3 files changed

+390
-1
lines changed

3 files changed

+390
-1
lines changed

forge.config.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { MakerRpm } from '@electron-forge/maker-rpm';
66
import { VitePlugin } from '@electron-forge/plugin-vite';
77
import { FusesPlugin } from '@electron-forge/plugin-fuses';
88
import { FuseV1Options, FuseVersion } from '@electron/fuses';
9+
import PublisherGithub from '@electron-forge/publisher-github';
910

1011
const config: ForgeConfig = {
1112
packagerConfig: {
@@ -19,13 +20,23 @@ const config: ForgeConfig = {
1920
extraResource: ['./src/assets'],
2021
},
2122
rebuildConfig: {},
23+
publishers: [
24+
new PublisherGithub({
25+
repository: {
26+
owner: 'AvenitaDev',
27+
name: 'SimpleProjector',
28+
},
29+
authToken: process.env.GITHUB_TOKEN,
30+
draft: true,
31+
prerelease: false,
32+
}),
33+
],
2234
makers: [
2335
new MakerSquirrel({
2436
name: "SimpleProjector",
2537
iconUrl: 'http://src/assets/icon.ico',
2638
setupIcon: './src/assets/icon.ico',
2739
}),
28-
new MakerZIP({}, ['darwin']),
2940
new MakerRpm({
3041
options: {
3142
name: 'SimpleProjector',

0 commit comments

Comments
 (0)