Skip to content

Commit

Permalink
Update forge.config.ts for author and product name variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Thavarshan committed Sep 5, 2024
1 parent 246938b commit f86ec8d
Showing 1 changed file with 37 additions and 3 deletions.
40 changes: 37 additions & 3 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ const config: ForgeConfig = {
unpack: "**/node_modules/{ffmpeg-static,ffprobe-static}/**",
},
win32metadata: {
CompanyName: 'Jerome Thayananthajothy',
OriginalFilename: 'Comet',
CompanyName: author.name,
OriginalFilename: productName,
},
},
rebuildConfig: {},
Expand Down Expand Up @@ -64,7 +64,7 @@ const config: ForgeConfig = {
packageDescription: description,
packageVersion: `${version}.0`,
publisher: 'CN=E0D72A6F-3D67-49D6-9EA4-99FAFB4620E5',
publisherDisplayName: 'Jerome Thayananthajothy',
publisherDisplayName: author.name,
devCert: path.resolve(__dirname, 'tools/certs/dev-cert.pfx'),
certPass: process.env.CERT_PASSWORD,
windowsKit: process.env.WINDOWS_KIT_PATH,
Expand All @@ -86,6 +86,15 @@ const config: ForgeConfig = {
platforms: ['linux'],
config: commonLinuxConfig,
},
{
name: '@reforged/maker-appimage',
platforms: ['linux'],
config: {
options: {
categories: commonLinuxConfig.categories,
},
},
},
],
plugins: [
new VitePlugin({
Expand Down Expand Up @@ -143,4 +152,29 @@ const config: ForgeConfig = {
]
};

function notarizeMaybe() {
if (process.platform !== 'darwin') {
return;
}

if (!process.env.CI && !process.env.FORCE_NOTARIZATION) {
// Not in CI, skipping notarization
// console.log('Not in CI, skipping notarization');
return;
}

if (!process.env.APPLE_ID || !process.env.APPLE_ID_PASSWORD) {
console.warn(
'Should be notarizing, but environment variables APPLE_ID or APPLE_ID_PASSWORD are missing!',
);
return;
}

config.packagerConfig.osxNotarize = {
appleId: process.env.APPLE_ID,
appleIdPassword: process.env.APPLE_ID_PASSWORD,
teamId: 'UY52UFTV**',
};
}

export default config;

0 comments on commit f86ec8d

Please sign in to comment.