mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Fix not updating SCRIPT_VERSION variable
This commit is contained in:
parent
1753a2d525
commit
d13f208215
3
build.ts
3
build.ts
@ -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),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -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';
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user