Skip to content

Commit 100234c

Browse files
committed
chore: fix formatting/space/quotes
fix issues around formatting Signed-off-by: Florent Benoit <[email protected]>
1 parent 2385d96 commit 100234c

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.electron-builder.config.cjs

+12-9
Original file line numberDiff line numberDiff line change
@@ -80,23 +80,26 @@ const config = {
8080
},
8181
buildDependenciesFromSource: false,
8282
npmRebuild: false,
83-
beforePack: async (context) => {
83+
beforePack: async context => {
8484
context.packager.config.extraResources = DEFAULT_ASSETS;
8585

8686
// universal build, add both pkg files
8787
// this is hack to avoid issue https://github.com/electron/universal/issues/36
88-
if(context.appOutDir.endsWith('mac-universal-x64-temp') || context.appOutDir.endsWith('mac-universal-arm64-temp')){
89-
context.packager.config.extraResources = DEFAULT_ASSETS;
88+
if (
89+
context.appOutDir.endsWith('mac-universal-x64-temp') ||
90+
context.appOutDir.endsWith('mac-universal-arm64-temp')
91+
) {
92+
context.packager.config.extraResources = DEFAULT_ASSETS;
9093
context.packager.config.extraResources.push('extensions/podman/assets/podman-installer-macos-universal*.pkg');
9194
return;
9295
}
9396

94-
if(context.arch === Arch.arm64 && context.electronPlatformName === 'darwin'){
97+
if (context.arch === Arch.arm64 && context.electronPlatformName === 'darwin') {
9598
context.packager.config.extraResources.push('extensions/podman/assets/podman-installer-macos-aarch64-*.pkg');
9699
context.packager.config.extraResources.push('extensions/podman/assets/podman-image-arm64.zst');
97100
}
98101

99-
if(context.arch === Arch.x64 && context.electronPlatformName === 'darwin'){
102+
if (context.arch === Arch.x64 && context.electronPlatformName === 'darwin') {
100103
context.packager.config.extraResources.push('extensions/podman/assets/podman-installer-macos-amd64-*.pkg');
101104
context.packager.config.extraResources.push('extensions/podman/assets/podman-image-x64.zst');
102105
}
@@ -202,12 +205,12 @@ const config = {
202205
protocols: {
203206
name: 'Podman Desktop',
204207
schemes: ['podman-desktop'],
205-
role: "Editor"
208+
role: 'Editor',
206209
},
207210
publish: {
208211
provider: 'github',
209212
timeout: 10000,
210-
}
213+
},
211214
/*extraMetadata: {
212215
version: process.env.VITE_APP_VERSION,
213216
},*/
@@ -217,14 +220,14 @@ const config = {
217220
if (process.env.AIRGAP_DOWNLOAD) {
218221
config.publish = {
219222
publishAutoUpdate: false,
220-
provider: 'github'
223+
provider: 'github',
221224
};
222225
}
223226

224227
if (process.env.APPLE_TEAM_ID) {
225228
config.mac.notarize = {
226229
teamId: process.env.APPLE_TEAM_ID,
227-
}
230+
};
228231
}
229232

230233
const azureCodeSign = filePath => {

0 commit comments

Comments
 (0)