Skip to content

Commit

Permalink
maker-squirrel
Browse files Browse the repository at this point in the history
  • Loading branch information
ceddybi committed Feb 5, 2024
1 parent d30bea0 commit 9ff3577
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
35 changes: 20 additions & 15 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import 'dotenv/config';
import { AutoUnpackNativesPlugin } from '@electron-forge/plugin-auto-unpack-natives';
import type { ForgeConfig } from '@electron-forge/shared-types';
import { MakerRpm } from '@electron-forge/maker-rpm';
import { MakerSquirrel } from '@electron-forge/maker-squirrel';
import { MakerZIP } from '@electron-forge/maker-zip';
import { WebpackPlugin } from '@electron-forge/plugin-webpack';
import { mainConfig } from './webpack.main.config';
import packageJson from './package.json';
import path from 'path';
import { rendererConfig } from './webpack.renderer.config';

const config: ForgeConfig = {
Expand Down Expand Up @@ -40,22 +40,27 @@ const config: ForgeConfig = {
}
},
rebuildConfig: {},
makers: [new MakerSquirrel({
iconUrl: 'https://raw.githubusercontent.com/ceddybi/AIJ/master/src/assets/icon.png',
setupIcon: './src/assets/icon.ico',
}), new MakerZIP({}, ['darwin']), new MakerRpm({}),
{
"name": "@electron-forge/maker-deb",
"config": {
"mimeType": [`x-scheme-handler/${packageJson.name}`],
options: {
maintainer: packageJson.author.name,
homepage: packageJson.homepage,
icon: './src/assets/icon.png',
categories: ['Utility']
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {
iconUrl: 'https://raw.githubusercontent.com/ceddybi/AIJ/master/src/assets/icon.png',
setupIcon: path.join(__dirname, '/src/assets/icon.png'),
skipUpdateIcon: true,
}
}, new MakerZIP({}, ['darwin']), new MakerRpm({}),
{
"name": "@electron-forge/maker-deb",
"config": {
"mimeType": [`x-scheme-handler/${packageJson.name}`],
options: {
maintainer: packageJson.author.name,
homepage: packageJson.homepage,
icon: './src/assets/icon.png',
categories: ['Utility']
}
}
}
}
],
plugins: [
new AutoUnpackNativesPlugin({}),
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"publish": "electron-forge publish --arch=x64 --platform",
"lint": "eslint --ext .ts,.tsx .",
"darwin": "yarn package && yarn make darwin && npm run publish darwin",
"darwin:arm64": "yarn package && electron-forge make --arch=arm64 --platform darwin && electron-forge publish --arch=arm64 --platform darwin",
"linux": "yarn package && yarn make linux && npm run publish linux",
"win": "yarn package && yarn make win32 && npm run publish win32"
},
Expand Down

0 comments on commit 9ff3577

Please sign in to comment.