forked from Starry-OS/Starry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
# default setting | ||
arch=x86_64 | ||
fs=fat32 | ||
size=30 | ||
size=10 | ||
FILE= | ||
|
||
display_help() | ||
|
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
# 检查是否存在 crates 路径,如果不存在则创建 | ||
if [ ! -d "./crates" ]; then | ||
echo "crates 正在创建..." | ||
mkdir crates | ||
kbuild patch add taskctx; | ||
cd crates/taskctx; | ||
git reset --hard 3c3ad2fb4defce02bc6186b836471ad28ab9c349; | ||
cd ../.. | ||
else | ||
echo "crates 路径已存在。" | ||
fi | ||
|
||
make clean; | ||
# 使用 sed 替换 channel 的值 | ||
sed -i 's/channel = "nightly-2024-05-02"/channel = "nightly"/' rust-toolchain.toml | ||
|
||
cargo update; | ||
|
||
sed -i 's/channel = "nightly"/channel = "nightly-2024-05-02"/' rust-toolchain.toml |