-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into community
- Loading branch information
Showing
68 changed files
with
2,093 additions
and
1,081 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# 使用 Ubuntu 20.04 ARM 版本作为基础镜像 | ||
FROM arm64v8/ubuntu:20.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# 更新系统并安装必要的软件包 | ||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
build-essential \ | ||
curl \ | ||
wget \ | ||
file \ | ||
libssl-dev \ | ||
libgtk-3-dev \ | ||
libwebkit2gtk-4.0-dev \ | ||
libappindicator3-dev \ | ||
librsvg2-dev \ | ||
perl | ||
|
||
# 安装 Rust(确保是适用于 ARM 的目标) | ||
COPY ci/scripts/install-rust.sh /scripts/ | ||
RUN chmod +x /scripts/install-rust.sh && \ | ||
/scripts/install-rust.sh | ||
ENV PATH=$PATH:/root/.cargo/bin | ||
|
||
ENV HOST_TRIPPLE aarch64-unknown-linux-gnu | ||
|
||
# 安装 Node.js 18.x | ||
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \ | ||
apt-get install -y nodejs | ||
RUN npm set strict-ssl false && npm install -g pnpm | ||
|
||
# 安装 Tauri CLI | ||
# RUN cargo install [email protected] | ||
COPY ci/scripts/install-tauri-cli.sh /scripts/ | ||
RUN chmod +x /scripts/install-tauri-cli.sh && \ | ||
/scripts/install-tauri-cli.sh | ||
|
||
# 执行项目构建 | ||
CMD cargo dev vendor && \ | ||
cargo dev dist |
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,43 @@ | ||
# 使用 Ubuntu 20.04 ARM 版本作为基础镜像 | ||
FROM arm64v8/ubuntu:20.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# 更新系统并安装必要的软件包 | ||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
make \ | ||
curl \ | ||
wget \ | ||
file \ | ||
libssl-dev \ | ||
libgtk-3-dev \ | ||
libwebkit2gtk-4.0-dev \ | ||
libappindicator3-dev \ | ||
librsvg2-dev \ | ||
perl \ | ||
musl-tools | ||
|
||
# 安装 Rust(确保是适用于 ARM 的目标) | ||
COPY ci/scripts/install-rust.sh /scripts/ | ||
RUN chmod +x /scripts/install-rust.sh && \ | ||
/scripts/install-rust.sh | ||
ENV PATH=$PATH:/root/.cargo/bin | ||
|
||
RUN rustup target add aarch64-unknown-linux-musl | ||
ENV HOST_TRIPPLE aarch64-unknown-linux-musl | ||
|
||
# 安装 Node.js 18.x | ||
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \ | ||
apt-get install -y nodejs | ||
RUN npm set strict-ssl false && npm install -g pnpm | ||
|
||
# 安装 Tauri CLI | ||
# RUN cargo install [email protected] | ||
COPY ci/scripts/install-tauri-cli.sh /scripts/ | ||
RUN chmod +x /scripts/install-tauri-cli.sh && \ | ||
/scripts/install-tauri-cli.sh | ||
|
||
# 执行项目构建 | ||
CMD cargo dev vendor && \ | ||
cargo dev dist |
Oops, something went wrong.