From 93855d78a9765003b779e684124230a301cbea51 Mon Sep 17 00:00:00 2001 From: Isaac-GC Date: Wed, 24 Jan 2024 19:11:31 -0800 Subject: [PATCH] Fixed formatting --- .eslintrc.js | 1 + electron-builder.ts | 58 ++++++++++++++++++++++----------------------- 2 files changed, 30 insertions(+), 29 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 7333aed0..349b4d94 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -59,5 +59,6 @@ module.exports = { 'vite.config.ts', 'postcss.config.js', 'src/components/**/*.vue', // Incrementally fix these + 'electron-builder.ts', ], }; diff --git a/electron-builder.ts b/electron-builder.ts index f7bc6706..eae60934 100644 --- a/electron-builder.ts +++ b/electron-builder.ts @@ -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. - * 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 - */ +/** + * 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 + * collection. See: https://github.com/electron-userland/electron-builder/issues/7812 + */ const config: Configuration = { - productName: "Frappe Books", - appId: "io.frappe.books", - asarUnpack: "**/*.node", + productName: 'Frappe Books', + appId: 'io.frappe.books', + asarUnpack: '**/*.node', extraResources: [ { from: 'log_creds.txt', to: '../creds/log_creds.txt' }, { from: 'translations', to: '../translations' }, { from: 'templates', to: '../templates' }, ], mac: { - type: "distribution", - category: "public.app-category.finance", - icon: "build/icon.icns", + type: 'distribution', + category: 'public.app-category.finance', + icon: 'build/icon.icns', notarize: { - teamId: process.env.APPLE_TEAM_ID || "" + teamId: process.env.APPLE_TEAM_ID || '', }, hardenedRuntime: true, gatekeeperAssess: false, darkModeSupport: false, - entitlements: "build/entitlements.mac.plist", - entitlementsInherit: "build/entitlements.mac.plist", - publish: [ "github" ] + entitlements: 'build/entitlements.mac.plist', + entitlementsInherit: 'build/entitlements.mac.plist', + publish: ['github'], }, win: { - publisherName: "Frappe Technologies Pvt. Ltd.", + publisherName: 'Frappe Technologies Pvt. Ltd.', signDlls: true, - icon: "build/icon.ico", - publish: [ "github" ], - target: [ "portable", "nsis" ] + icon: 'build/icon.ico', + publish: ['github'], + target: ['portable', 'nsis'], }, nsis: { oneClick: false, perMachine: false, allowToChangeInstallationDirectory: true, - installerIcon: "build/installericon.ico", - uninstallerIcon: "build/uninstallericon.ico", - publish: [ "github" ] + installerIcon: 'build/installericon.ico', + uninstallerIcon: 'build/uninstallericon.ico', + publish: ['github'], }, linux: { - icon: "build/icons", - category: "Finance", - publish: [ "github" ], - target: [ "deb", "AppImage", "rpm" ] - } + icon: 'build/icons', + category: 'Finance', + publish: ['github'], + target: ['deb', 'AppImage', 'rpm'], + }, }; -export default config; \ No newline at end of file +export default config;