mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-01-31 00:35:19 +01:00
fix(cross): Fix docker image and cross setup (#8094)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:18.04
|
FROM ubuntu:22.04
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
COPY common.sh lib.sh /
|
COPY common.sh lib.sh /
|
||||||
|
|||||||
@@ -3,3 +3,4 @@
|
|||||||
export ICONS_VOLUME="$(realpath ../.icons)"
|
export ICONS_VOLUME="$(realpath ../.icons)"
|
||||||
export DIST_VOLUME="$(realpath dist)"
|
export DIST_VOLUME="$(realpath dist)"
|
||||||
export ISOLATION_VOLUME="$(realpath isolation-dist)"
|
export ISOLATION_VOLUME="$(realpath isolation-dist)"
|
||||||
|
export WORKSPACE_VOLUME="$(realpath ../..)"
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
[build.env]
|
[build.env]
|
||||||
# must set ICONS_VOLUME, DIST_VOLUME and ISOLATION_VOLUME environment variables
|
# must set ICONS_VOLUME, DIST_VOLUME, ISOLATION_VOLUME and WORKSPACE_VOLUME environment variables
|
||||||
# ICONS_VOLUME: absolute path to the .icons folder
|
# ICONS_VOLUME: absolute path to the .icons folder
|
||||||
# DIST_VOLUME: absolute path to the dist folder
|
# DIST_VOLUME: absolute path to the dist folder
|
||||||
# ISOLATION_VOLUME: absolute path to the isolation dist folder
|
# ISOLATION_VOLUME: absolute path to the isolation dist folder
|
||||||
|
# WORKSPACE_VOLUME: absolute path to the workspace
|
||||||
# this can be done running `$ . .setup-cross.sh` in the examples/api folder
|
# this can be done running `$ . .setup-cross.sh` in the examples/api folder
|
||||||
volumes = ["ICONS_VOLUME", "DIST_VOLUME", "ISOLATION_VOLUME"]
|
volumes = ["ICONS_VOLUME", "DIST_VOLUME", "ISOLATION_VOLUME","WORKSPACE_VOLUME"]
|
||||||
|
|
||||||
[target.aarch64-unknown-linux-gnu]
|
[target.aarch64-unknown-linux-gnu]
|
||||||
image = "aarch64-unknown-linux-gnu:latest"
|
image = "aarch64-unknown-linux-gnu:latest"
|
||||||
|
|||||||
Reference in New Issue
Block a user