-
Notifications
You must be signed in to change notification settings - Fork 581
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(manifest): support more sidecar archs
support linux armhf armel i386 support window i386
- Loading branch information
1 parent
7546547
commit 0fe1046
Showing
10 changed files
with
127 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,7 @@ | ||
import { CLASH_META_MANIFEST } from "../manifest/clash-meta"; | ||
import { CLASH_MANIFEST } from "../manifest/clash-premium"; | ||
import { colorize, consola } from "./logger"; | ||
|
||
export const archCheck = (platform: string, arch: string) => { | ||
consola.debug(colorize`platform {yellow ${platform}}`); | ||
|
||
consola.debug(colorize`arch {yellow ${arch}}`); | ||
|
||
if (!CLASH_MANIFEST.BIN_MAP[`${platform}-${arch}`]) { | ||
throw new Error(`clash unsupported platform "${platform}-${arch}"`); | ||
} | ||
|
||
if (!CLASH_META_MANIFEST.BIN_MAP[`${platform}-${arch}`]) { | ||
throw new Error(`clash meta unsupported platform "${platform}-${arch}"`); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.