Skip to content

Commit

Permalink
refactor: add types
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <[email protected]>
  • Loading branch information
setchy committed Oct 6, 2024
1 parent 00015cf commit 12d8ac3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions scripts/notarize.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { notarize } = require('@electron/notarize');
const { AfterPackContext } = require('electron-builder');

const packageJson = require('../package.json');
const appBundleId = packageJson.build.appId;
Expand All @@ -8,6 +9,9 @@ function logNotarizingProgress(msg) {
console.log(` • notarizing ${msg}`);
}

/**
* @param {AfterPackContext} context
*/
const notarizeApp = async (context) => {
const { electronPlatformName, appOutDir } = context;
const appName = context.packager.appInfo.productFilename;
Expand Down
8 changes: 7 additions & 1 deletion scripts/remove-unused-locales.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
const path = require('node:path');
const fs = require('node:fs');
const { AfterPackContext } = require('electron-builder');

const packageJson = require('../package.json');
const electronLanguages = packageJson.build.electronLanguages;

exports.default = async (context) => {
/**
* @param {AfterPackContext} context
*/
const removeLocales = async (context) => {
const appName = context.packager.appInfo.productFilename;
const appOutDir = context.appOutDir;
const platform = context.electronPlatformName;
Expand Down Expand Up @@ -39,3 +43,5 @@ exports.default = async (context) => {
}
}
};

exports.default = removeLocales;

0 comments on commit 12d8ac3

Please sign in to comment.