2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 10:58:59 +00:00

Fixed formatting

This commit is contained in:
Isaac-GC 2024-01-24 19:11:31 -08:00
parent bfa96274af
commit 93855d78a9
2 changed files with 30 additions and 29 deletions

View File

@ -59,5 +59,6 @@ module.exports = {
'vite.config.ts', 'vite.config.ts',
'postcss.config.js', 'postcss.config.js',
'src/components/**/*.vue', // Incrementally fix these 'src/components/**/*.vue', // Incrementally fix these
'electron-builder.ts',
], ],
}; };

View File

@ -1,55 +1,55 @@
import type { Configuration } from "electron-builder"; import type { Configuration } from 'electron-builder';
/** /**
* electron-builder doesn't look for the APPLE_TEAM_ID environment variable for some reason. * electron-builder doesn't look for the APPLE_TEAM_ID environment variable for some reason.
* This workaround allows an environment variable to be added to the electron-builder.yml config * This workaround allows an environment variable to be added to the electron-builder.yml config
* collection. See: https://github.com/electron-userland/electron-builder/issues/7812 * collection. See: https://github.com/electron-userland/electron-builder/issues/7812
*/ */
const config: Configuration = { const config: Configuration = {
productName: "Frappe Books", productName: 'Frappe Books',
appId: "io.frappe.books", appId: 'io.frappe.books',
asarUnpack: "**/*.node", asarUnpack: '**/*.node',
extraResources: [ extraResources: [
{ from: 'log_creds.txt', to: '../creds/log_creds.txt' }, { from: 'log_creds.txt', to: '../creds/log_creds.txt' },
{ from: 'translations', to: '../translations' }, { from: 'translations', to: '../translations' },
{ from: 'templates', to: '../templates' }, { from: 'templates', to: '../templates' },
], ],
mac: { mac: {
type: "distribution", type: 'distribution',
category: "public.app-category.finance", category: 'public.app-category.finance',
icon: "build/icon.icns", icon: 'build/icon.icns',
notarize: { notarize: {
teamId: process.env.APPLE_TEAM_ID || "" teamId: process.env.APPLE_TEAM_ID || '',
}, },
hardenedRuntime: true, hardenedRuntime: true,
gatekeeperAssess: false, gatekeeperAssess: false,
darkModeSupport: false, darkModeSupport: false,
entitlements: "build/entitlements.mac.plist", entitlements: 'build/entitlements.mac.plist',
entitlementsInherit: "build/entitlements.mac.plist", entitlementsInherit: 'build/entitlements.mac.plist',
publish: [ "github" ] publish: ['github'],
}, },
win: { win: {
publisherName: "Frappe Technologies Pvt. Ltd.", publisherName: 'Frappe Technologies Pvt. Ltd.',
signDlls: true, signDlls: true,
icon: "build/icon.ico", icon: 'build/icon.ico',
publish: [ "github" ], publish: ['github'],
target: [ "portable", "nsis" ] target: ['portable', 'nsis'],
}, },
nsis: { nsis: {
oneClick: false, oneClick: false,
perMachine: false, perMachine: false,
allowToChangeInstallationDirectory: true, allowToChangeInstallationDirectory: true,
installerIcon: "build/installericon.ico", installerIcon: 'build/installericon.ico',
uninstallerIcon: "build/uninstallericon.ico", uninstallerIcon: 'build/uninstallericon.ico',
publish: [ "github" ] publish: ['github'],
}, },
linux: { linux: {
icon: "build/icons", icon: 'build/icons',
category: "Finance", category: 'Finance',
publish: [ "github" ], publish: ['github'],
target: [ "deb", "AppImage", "rpm" ] target: ['deb', 'AppImage', 'rpm'],
} },
}; };
export default config; export default config;