Fix not updating SCRIPT_VERSION variable

This commit is contained in:
redphx 2024-04-27 10:15:59 +07:00
parent 1753a2d525
commit d13f208215
2 changed files with 5 additions and 4 deletions

View File

@ -27,7 +27,7 @@ const postProcess = (str: string): string => {
return str; return str;
} }
const build = async (target: BuildTarget, version, config: any={}) => { const build = async (target: BuildTarget, version: string, config: any={}) => {
console.log('-- Target:', target); console.log('-- Target:', target);
const startTime = performance.now(); const startTime = performance.now();
@ -47,6 +47,7 @@ const build = async (target: BuildTarget, version, config: any={}) => {
naming: outputScriptName, naming: outputScriptName,
define: { define: {
'Bun.env.BUILD_TARGET': JSON.stringify(target), 'Bun.env.BUILD_TARGET': JSON.stringify(target),
'Bun.env.SCRIPT_VERSION': JSON.stringify(version),
}, },
}); });

View File

@ -1,3 +1,6 @@
export const SCRIPT_VERSION = Bun.env.SCRIPT_VERSION;
export const SCRIPT_HOME = 'https://github.com/redphx/better-xcloud';
export const AppInterface = window.AppInterface; export const AppInterface = window.AppInterface;
export const NATIVE_FETCH = window.fetch; export const NATIVE_FETCH = window.fetch;
export const STATES: BxStates = { export const STATES: BxStates = {
@ -9,6 +12,3 @@ export const STATES: BxStates = {
currentStream: {}, currentStream: {},
remotePlay: {}, remotePlay: {},
}; };
export const SCRIPT_VERSION = '3.5.3';
export const SCRIPT_HOME = 'https://github.com/redphx/better-xcloud';