Skip to content

Commit

Permalink
chore: migrate to vite
Browse files Browse the repository at this point in the history
  • Loading branch information
will-stone committed Dec 26, 2023
1 parent 9e25c29 commit dcfbab9
Show file tree
Hide file tree
Showing 70 changed files with 985 additions and 1,012 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ node_modules
out
.webpack
.env
.idea
.idea
.vite
File renamed without changes.
66 changes: 66 additions & 0 deletions forge.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// @ts-check

import { MakerZIP } from '@electron-forge/maker-zip'
import { VitePlugin } from '@electron-forge/plugin-vite'

/** @type {import('@electron-forge/shared-types').ForgeConfig} */
const config = {
makers: [new MakerZIP({}, ['darwin'])],
packagerConfig: {
appBundleId: 'com.browserosaurus',
appCategoryType: 'public.app-category.developer-tools',
asar: false,
extendInfo: 'plist/Info.plist',
icon: 'src/shared/static/icon/icon.icns',
osxNotarize: process.env.CI
? undefined
: {
keychain: '~/Library/Keychains/login.keychain-db',
keychainProfile: 'AC_PASSWORD',
},
osxSign: process.env.CI
? undefined
: {
optionsForFile: () => ({
'entitlements': 'plist/entitlements.mac.plist',
'hardened-runtime': true,
}),
},
protocols: [
{
name: 'HTTP link',
schemes: ['http', 'https'],
},
{
name: 'File',
schemes: ['file'],
},
],
},
plugins: [
new VitePlugin({
build: [
{
config: 'vite.main.config.ts',
entry: 'src/main/main.ts',
},
{
config: 'vite.preload.config.ts',
entry: 'src/renderers/shared/preload.ts',
},
],
renderer: [
{
config: 'vite.renderer.prefs.config.ts',
name: 'prefs_window',
},
{
config: 'vite.renderer.picker.config.ts',
name: 'picker_window',
},
],
}),
],
}

export default config
76 changes: 0 additions & 76 deletions forge.config.ts

This file was deleted.

Loading

0 comments on commit dcfbab9

Please sign in to comment.