windows: zapret-discord-youtube and tg-ws-proxy
zapret: Flowseal's release run as its service.bat runs it: the preset's winws.exe line (continuations, cmd's caret escapes, %BIN%, %LISTS%, the game filter) as winws's arguments, the user's domains and addresses in the lists upstream's module puts them in (kept in the service's own run directory, the verified release untouched), TCP timestamps on, and zapret's sites in the proxy's direct list. tools/winws-dry-run.sh has the release's own winws.exe verify every preset's arguments under Wine: all 22, both game filters. tg-ws-proxy: Flowseal's headless proxy on the embeddable CPython 3.12 with hash-pinned win_amd64 wheels (tools/build-tg-ws-proxy.sh), run with upstream's flags; its relay goes direct under the TUN. Runs under Wine. proxy-ctl: zapret status|on|off|preset|game-filter, components list|install. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
817de77d28
commit
9b0d7021f9
12 files changed
+873
-1
No files matched your search
@@ -160,7 +160,22 @@ pub async fn stage(to: &Path, cache: &Path, only: &[String]) -> Result<()> {
|
||||
let manifest = ps_core::components::manifest();
|
||||
std::fs::create_dir_all(to)?;
|
||||
for (name, comp) in &manifest.components {
|
||||
if comp.bundled || (!only.is_empty() && !only.contains(name)) {
|
||||
if !only.is_empty() && !only.contains(name) {
|
||||
continue;
|
||||
}
|
||||
if comp.bundled {
|
||||
// Built beside this (tools/build-*.sh): recorded as an install records.
|
||||
let dir = to.join(name);
|
||||
match installed_version(to, name) {
|
||||
Some(v) if v == comp.version => {
|
||||
let mut files = std::collections::BTreeMap::new();
|
||||
record(&dir, &dir, &mut files)?;
|
||||
std::fs::write(dir.join(".files.json"), serde_json::to_vec_pretty(&files)?)?;
|
||||
println!("{name} {} (built)", comp.version);
|
||||
}
|
||||
Some(v) => bail!("{name} in {} is {v}, the manifest wants {}", to.display(), comp.version),
|
||||
None => println!("{name}: not built (tools/build-{name}.sh); left out"),
|
||||
}
|
||||
continue;
|
||||
}
|
||||
println!("{name} {}", comp.version);
|
||||
|
||||
Reference in new issue
Block a user