mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-21 08:16:32 +00:00
Update the aster-frame version used by OSDK
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
c75a3732b9
commit
237c223b1c
@ -158,7 +158,7 @@ fn install_setup_with_arch(
|
|||||||
cmd.arg("--force");
|
cmd.arg("--force");
|
||||||
cmd.arg("--root").arg(install_dir.as_ref());
|
cmd.arg("--root").arg(install_dir.as_ref());
|
||||||
cmd.arg("--git").arg(crate::util::ASTER_GIT_LINK);
|
cmd.arg("--git").arg(crate::util::ASTER_GIT_LINK);
|
||||||
cmd.arg("--rev").arg(crate::util::ASTER_GIT_REV);
|
cmd.arg("--tag").arg(crate::util::ASTER_GIT_TAG);
|
||||||
cmd.arg("--target").arg(match arch {
|
cmd.arg("--target").arg(match arch {
|
||||||
SetupInstallArch::X86_64 => "x86_64-unknown-none",
|
SetupInstallArch::X86_64 => "x86_64-unknown-none",
|
||||||
SetupInstallArch::Other(path) => path.to_str().unwrap(),
|
SetupInstallArch::Other(path) => path.to_str().unwrap(),
|
||||||
|
@ -16,11 +16,13 @@ use quote::ToTokens;
|
|||||||
/// and use the published version in the generated Cargo.toml.
|
/// and use the published version in the generated Cargo.toml.
|
||||||
pub const ASTER_GIT_LINK: &str = "https://github.com/asterinas/asterinas";
|
pub const ASTER_GIT_LINK: &str = "https://github.com/asterinas/asterinas";
|
||||||
/// Make sure it syncs with the builder dependency in Cargo.toml.
|
/// Make sure it syncs with the builder dependency in Cargo.toml.
|
||||||
pub const ASTER_GIT_REV: &str = "ccc4e6e";
|
/// We cannot use `include_str!("../../VERSION")` here
|
||||||
|
/// because `cargo publish` does not allow using files outside of the crate directory.
|
||||||
|
pub const ASTER_GIT_TAG: &str = concat!("v", env!("CARGO_PKG_VERSION"));
|
||||||
pub fn aster_crate_dep(crate_name: &str) -> String {
|
pub fn aster_crate_dep(crate_name: &str) -> String {
|
||||||
format!(
|
format!(
|
||||||
"{} = {{ git = \"{}\", rev = \"{}\" }}",
|
"{} = {{ git = \"{}\", tag = \"{}\" }}",
|
||||||
crate_name, ASTER_GIT_LINK, ASTER_GIT_REV
|
crate_name, ASTER_GIT_LINK, ASTER_GIT_TAG
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -129,6 +129,7 @@ GET_STARTED_PATH=${ASTER_SRC_DIR}/docs/src/kernel/README.md
|
|||||||
update_image_versions $GET_STARTED_PATH
|
update_image_versions $GET_STARTED_PATH
|
||||||
|
|
||||||
# Create or update VERSION
|
# Create or update VERSION
|
||||||
echo "${new_version}" > ${VERSION_PATH}
|
# `-n` is used to avoid adding a '\n' in the VERSION file.
|
||||||
|
echo -n "${new_version}" > ${VERSION_PATH}
|
||||||
|
|
||||||
echo "Bumped Asterinas & OSDK version to $new_version"
|
echo "Bumped Asterinas & OSDK version to $new_version"
|
||||||
|
Reference in New Issue
Block a user