mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Add build.sh
This commit is contained in:
parent
d0f43db1fd
commit
af41dc7c5e
16
build.sh
Executable file
16
build.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
build_all () {
|
||||||
|
# Clear screen
|
||||||
|
printf "\033c"
|
||||||
|
|
||||||
|
# Build all variants
|
||||||
|
bun build.ts --version $1 --variant full
|
||||||
|
bun build.ts --version $1 --variant lite
|
||||||
|
|
||||||
|
# Wait for key
|
||||||
|
read -p ">> Press Enter to build again..."
|
||||||
|
build_all $1
|
||||||
|
}
|
||||||
|
|
||||||
|
build_all $1
|
6
build.ts
6
build.ts
@ -200,7 +200,8 @@ async function main() {
|
|||||||
await build(target, values['version']!!, values['variant'], config);
|
await build(target, values['version']!!, values['variant'], config);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('\n** Press Enter to build or Esc to exit');
|
console.log('')
|
||||||
|
// console.log('\n** Press Enter to build or Esc to exit');
|
||||||
}
|
}
|
||||||
|
|
||||||
function onKeyPress(data: any) {
|
function onKeyPress(data: any) {
|
||||||
@ -213,6 +214,9 @@ function onKeyPress(data: any) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
main();
|
main();
|
||||||
|
|
||||||
|
/*
|
||||||
process.stdin.setRawMode(true);
|
process.stdin.setRawMode(true);
|
||||||
process.stdin.resume();
|
process.stdin.resume();
|
||||||
process.stdin.on('data', onKeyPress);
|
process.stdin.on('data', onKeyPress);
|
||||||
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user