mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
fix: Change the source + add input
This commit is contained in:
@@ -8,7 +8,7 @@ if [ "$0" != "./build-prod.sh" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
alias 'rust-arm64-builder'='docker run --rm -it -v "$HOME/.cargo/registry":/root/.cargo/registry -v "$(pwd)":/home/rust/src start9/rust-arm-cross:aarch64'
|
||||
alias 'rust-arm64-builder'='docker run --rm -it -v "$HOME/.cargo/registry":/root/.cargo/registry -v "$(pwd)":/home/rust/src -P start9/rust-arm-cross:aarch64'
|
||||
|
||||
cd ..
|
||||
FLAGS=""
|
||||
|
||||
@@ -635,6 +635,11 @@ mod js_runtime {
|
||||
Ok(ctx.input.clone())
|
||||
}
|
||||
#[op]
|
||||
fn get_input(state: &mut OpState) -> Result<Value, AnyError> {
|
||||
let ctx = state.borrow::<JsContext>();
|
||||
Ok(ctx.input.clone())
|
||||
}
|
||||
#[op]
|
||||
fn set_value(state: &mut OpState, value: Value) -> Result<(), AnyError> {
|
||||
let mut answer = state.borrow::<AnswerState>().0.lock();
|
||||
*answer = value;
|
||||
|
||||
@@ -56,7 +56,7 @@ export async function getConfig(effects) {
|
||||
volumeId: 'main',
|
||||
// @ts-ignore
|
||||
})).value;
|
||||
|
||||
|
||||
await effects.removeFile({
|
||||
path: "./testing/test2.log",
|
||||
volumeId: 'main',
|
||||
|
||||
Reference in New Issue
Block a user