mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
feat(desktop): sign every Windows release artifact (#1548)
This commit is contained in:
1 parent
873c203b5d
commit
6e66c92dca
89 files changed
+2408
-2740
No files matched your search
@@ -18,20 +18,11 @@ const isProduction =
|
||||
const skipNative = process.env.FLUXER_SKIP_NATIVE === 'true';
|
||||
const embeddedBuildVersion = process.env.PUBLIC_BUILD_VERSION || process.env.BUILD_VERSION || '';
|
||||
const embeddedReleaseChannel = process.env.PUBLIC_RELEASE_CHANNEL || process.env.RELEASE_CHANNEL || '';
|
||||
const requestedDesktopBuildVariant = process.env.FLUXER_DESKTOP_BUILD_VARIANT || process.env.DESKTOP_VARIANT || '';
|
||||
const windowsGameCaptureModuleEnabled =
|
||||
requestedDesktopBuildVariant === 'windows-game-capture' ||
|
||||
process.env.FLUXER_WINDOWS_GAME_CAPTURE_MODULE_ENABLED === 'true';
|
||||
const embeddedDesktopBuildVariant = windowsGameCaptureModuleEnabled ? 'windows-game-capture' : 'default';
|
||||
const publicBuildDefines = {
|
||||
'process.env.PUBLIC_BUILD_VERSION': JSON.stringify(embeddedBuildVersion),
|
||||
'process.env.BUILD_VERSION': JSON.stringify(embeddedBuildVersion),
|
||||
'process.env.PUBLIC_RELEASE_CHANNEL': JSON.stringify(embeddedReleaseChannel),
|
||||
'process.env.RELEASE_CHANNEL': JSON.stringify(embeddedReleaseChannel),
|
||||
'process.env.FLUXER_DESKTOP_BUILD_VARIANT': JSON.stringify(embeddedDesktopBuildVariant),
|
||||
'process.env.FLUXER_WINDOWS_GAME_CAPTURE_MODULE_ENABLED': JSON.stringify(
|
||||
windowsGameCaptureModuleEnabled ? 'true' : 'false',
|
||||
),
|
||||
};
|
||||
const electronExternals = [
|
||||
'electron',
|
||||
@@ -175,7 +166,6 @@ function isWindowsNativeRuntimeManifest(fileName) {
|
||||
}
|
||||
|
||||
function addWinGameCaptureRuntimeArtifacts(artifacts, tag, arch) {
|
||||
if (!windowsGameCaptureModuleEnabled) return;
|
||||
const add = (relativePath) => {
|
||||
artifacts.push({
|
||||
label: '@fluxer/win-game-capture',
|
||||
@@ -498,14 +488,12 @@ function buildNativeAddons() {
|
||||
commands: [['pnpm', 'build']],
|
||||
jsEntry: 'index.js',
|
||||
});
|
||||
if (windowsGameCaptureModuleEnabled) {
|
||||
buildNativeAddon({
|
||||
label: '@fluxer/win-game-capture',
|
||||
dirName: 'win-game-capture',
|
||||
commands: [['pnpm', 'build']],
|
||||
jsEntry: 'index.js',
|
||||
});
|
||||
}
|
||||
buildNativeAddon({
|
||||
label: '@fluxer/win-game-capture',
|
||||
dirName: 'win-game-capture',
|
||||
commands: [['pnpm', 'build']],
|
||||
jsEntry: 'index.js',
|
||||
});
|
||||
buildNativeAddon({
|
||||
label: '@fluxer/platform-info',
|
||||
dirName: 'platform-info',
|
||||
|
||||
Reference in new issue
Block a user