🐛 fix(build.sh): add host tools and cross toolchain
This commit is contained in:
@@ -37,7 +37,8 @@ bash build.sh
|
||||
|
||||
The script installs the required APT packages with `sudo`, clones ImmortalWrt
|
||||
`v25.12.1` into `.build/immortalwrt`, configures the generic x86/64 target, and
|
||||
builds only mihomo. Generated APK files are copied to `./dist/`.
|
||||
builds the required host tools, the x86/64 cross toolchain, and mihomo. Generated
|
||||
APK files are copied to `./dist/`.
|
||||
|
||||
To skip APT installation on later runs:
|
||||
|
||||
@@ -45,6 +46,10 @@ To skip APT installation on later runs:
|
||||
SKIP_DEPS=1 bash build.sh
|
||||
```
|
||||
|
||||
If a previous build failed, keep `.build/immortalwrt` and run the same command
|
||||
again. Make will reuse completed host tools and toolchain components and resume
|
||||
the build.
|
||||
|
||||
The build directory, job count, and source version can be overridden:
|
||||
|
||||
```sh
|
||||
|
||||
Reference in New Issue
Block a user