diff --git a/src/locales/en.json b/src/locales/en.json index 0b2a4b98..f23b04a9 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -457,11 +457,11 @@ "string": "Zip, combine assets into single file (not recommended)" }, "application-win32": { - "string": "{type} Windows application (32-bit or 64-bit)", + "string": "{type} Windows application (32-bit)", "context": "type will become something like 'NW.js' or 'Electron'. Do not translate 'Windows'." }, "application-win64": { - "string": "{type} Windows application (64-bit only, not recommended)", + "string": "{type} Windows application (64-bit)", "context": "type will become something like 'NW.js' or 'Electron'. Do not translate 'Windows'." }, "application-win-arm": { @@ -558,7 +558,7 @@ "string": "Increase max vector costume resolution to make large costumes look better. May increase memory use and cause crashes." }, "steamworksUnavailable": { - "string": "To enable the Steamworks extension, you must use one of the Electron environments." + "string": "To enable the Steamworks extension, you must use one of these environments:" }, "steamworksAvailable": { "string": "This project is using the Steamworks extension. You can find your game's app ID in Steamworks. 480 is the ID of the Steamworks demo game (Spacewar)." diff --git a/src/p4/PackagerOptions.svelte b/src/p4/PackagerOptions.svelte index dc8e0fdc..5caf7c06 100644 --- a/src/p4/PackagerOptions.svelte +++ b/src/p4/PackagerOptions.svelte @@ -1021,7 +1021,7 @@ }} >

Steamworks

- {#if $options.target.startsWith('electron-')} + {#if ['electron-win64', 'electron-linux64', 'electron-mac'].includes($options.target)}

{$_('options.steamworksAvailable')}

{:else}

{$_('options.steamworksUnavailable')}

+ {/if} {/if} diff --git a/src/packager/packager.js b/src/packager/packager.js index 0706c292..24955364 100644 --- a/src/packager/packager.js +++ b/src/packager/packager.js @@ -732,7 +732,10 @@ app.whenReady().then(() => { const {contextBridge, ipcRenderer} = require('electron'); `; - if (this.project.analysis.usesSteamworks) { + if ( + this.project.analysis.usesSteamworks && + ['electron-win64', 'electron-linux64', 'electron-mac'].includes(this.options.target) + ) { mainJS += ` const enableSteamworks = () => { const APP_ID = +${JSON.stringify(this.options.steamworks.appId)};