feat: updates
This commit is contained in:
@@ -40,7 +40,7 @@ use tokio_util::codec::{Decoder, FramedRead};
|
|||||||
|
|
||||||
const OSS_SEND_FILE_CONFIG_FILE: &str = "~/.jssp/config/osssendfile.json";
|
const OSS_SEND_FILE_CONFIG_FILE: &str = "~/.jssp/config/osssendfile.json";
|
||||||
const CREATE_STS_URL: &str = "https://hatter.ink/oidc/create_sts.json";
|
const CREATE_STS_URL: &str = "https://hatter.ink/oidc/create_sts.json";
|
||||||
const ADD_DOC_URL: &str = "https://playsecurity.org/doc/addDoc.jsonp";
|
const ADD_DOC_URL: &str = "https://play.hatter.me/doc/addDoc.jsonp";
|
||||||
|
|
||||||
#[derive(Debug, Parser)]
|
#[derive(Debug, Parser)]
|
||||||
#[command(name = "osssendfile-rs", bin_name = "osssendfile.rs")]
|
#[command(name = "osssendfile-rs", bin_name = "osssendfile.rs")]
|
||||||
@@ -376,5 +376,5 @@ async fn parse_sts_response(response: Response) -> XResult<Sts> {
|
|||||||
Ok(sts)
|
Ok(sts)
|
||||||
}
|
}
|
||||||
|
|
||||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250123T234818+08:00.MEUCIAu1vC7V6LU5kpnr1Q8H
|
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250620T220638+08:00.MEUCIB20YFhBPP1yoqSil3Me
|
||||||
// TA6dAgC7kodEwgLFibsoF6wTAiEAsvvxxzGPedrIhqj4yOtL78Fud9PaS1v8QmosGrn+Yvo=
|
// LoDojsR0d9RIMTT56rZ1Jy5hAiEA8gvFd4GK89l92iEEnCK3koLrnsCWCyEJiYwixSW5E20=
|
||||||
|
|||||||
@@ -74,11 +74,11 @@
|
|||||||
},
|
},
|
||||||
"osssendfile.rs": {
|
"osssendfile.rs": {
|
||||||
"script_name": "osssendfile.rs",
|
"script_name": "osssendfile.rs",
|
||||||
"script_length": 14014,
|
"script_length": 14012,
|
||||||
"script_sha256": "75afdc43c68f9463f544feb4e257f1aec7ed96e361b3c5d95a43bc1aa3fb6158",
|
"script_sha256": "8998ca6866eb91be97b1d21aef8a74dd5a8d9072dca466fda81e952c0918df27",
|
||||||
"script_full_url": "https://git.hatter.ink/rust-scripts/scriptbase/raw/branch/main/osssendfile-rs/src/main.rs",
|
"script_full_url": "https://git.hatter.ink/rust-scripts/scriptbase/raw/branch/main/osssendfile-rs/src/main.rs",
|
||||||
"publish_time": 1737272563311,
|
"publish_time": 1737272563311,
|
||||||
"update_time": 1737647377228
|
"update_time": 1750428425868
|
||||||
},
|
},
|
||||||
"post.rs": {
|
"post.rs": {
|
||||||
"script_name": "post.rs",
|
"script_name": "post.rs",
|
||||||
@@ -114,11 +114,11 @@
|
|||||||
},
|
},
|
||||||
"sync.rs": {
|
"sync.rs": {
|
||||||
"script_name": "sync.rs",
|
"script_name": "sync.rs",
|
||||||
"script_length": 1980,
|
"script_length": 1978,
|
||||||
"script_sha256": "426b6b88e09650104569e31150c44e1a08c64b01b149dad178cfde36fd98214d",
|
"script_sha256": "2218487f955e8021c2e4b5b56b9aa4bec6cde89839ae45449bb852c5696cb72e",
|
||||||
"script_full_url": "https://git.hatter.ink/rust-scripts/scriptbase/raw/branch/main/sync-rs/src/main.rs",
|
"script_full_url": "https://git.hatter.ink/rust-scripts/scriptbase/raw/branch/main/sync-rs/src/main.rs",
|
||||||
"publish_time": 1737272563310,
|
"publish_time": 1737272563310,
|
||||||
"update_time": 1737647377227
|
"update_time": 1750428425867
|
||||||
},
|
},
|
||||||
"xattr.rs": {
|
"xattr.rs": {
|
||||||
"script_name": "xattr.rs",
|
"script_name": "xattr.rs",
|
||||||
|
|||||||
@@ -41,8 +41,8 @@
|
|||||||
},
|
},
|
||||||
"osssendfile-rs": {
|
"osssendfile-rs": {
|
||||||
"script_name": "osssendfile-rs",
|
"script_name": "osssendfile-rs",
|
||||||
"script_length": 14014,
|
"script_length": 14012,
|
||||||
"script_sha256": "75afdc43c68f9463f544feb4e257f1aec7ed96e361b3c5d95a43bc1aa3fb6158"
|
"script_sha256": "8998ca6866eb91be97b1d21aef8a74dd5a8d9072dca466fda81e952c0918df27"
|
||||||
},
|
},
|
||||||
"post-rs": {
|
"post-rs": {
|
||||||
"script_name": "post-rs",
|
"script_name": "post-rs",
|
||||||
@@ -66,8 +66,8 @@
|
|||||||
},
|
},
|
||||||
"sync-rs": {
|
"sync-rs": {
|
||||||
"script_name": "sync-rs",
|
"script_name": "sync-rs",
|
||||||
"script_length": 1980,
|
"script_length": 1978,
|
||||||
"script_sha256": "426b6b88e09650104569e31150c44e1a08c64b01b149dad178cfde36fd98214d"
|
"script_sha256": "2218487f955e8021c2e4b5b56b9aa4bec6cde89839ae45449bb852c5696cb72e"
|
||||||
},
|
},
|
||||||
"xattr-rs": {
|
"xattr-rs": {
|
||||||
"script_name": "xattr-rs",
|
"script_name": "xattr-rs",
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let sync_url = "https://playsecurity.org/update_pages?".to_owned() + &page_name;
|
let sync_url = "https://play.hatter.me/update_pages?".to_owned() + &page_name;
|
||||||
information!("curl URL: {}", sync_url);
|
information!("curl URL: {}", sync_url);
|
||||||
Command::new("curl").args(&[sync_url]).spawn()?.wait()?;
|
Command::new("curl").args(&[sync_url]).spawn()?.wait()?;
|
||||||
|
|
||||||
@@ -58,5 +58,5 @@ pub fn find_parents_exists_dir(dir: &str) -> Option<PathBuf> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250123T234732+08:00.MEUCIQCd/svmieJeesqSkqC3
|
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20250620T220543+08:00.MEUCIHsFQ1sf53x3ATTLFkMQ
|
||||||
// w1PizLfou+SsO5w9iOcmLPAPnAIgYEtnKKY5+/21vUzlPIvNrXdNmcf8zVmtv5kHuocUbTE=
|
// oUau9y550grtnm7yGglEoDI/AiEAgZcouLIJXHP042IFnhkTljMo67O9Cs6MlpvNT+BzOA8=
|
||||||
|
|||||||
Reference in New Issue
Block a user