mirror of
https://gitee.com/amber-ce/amber-ce-bookworm.git
synced 2025-12-15 03:22:06 +08:00
Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 401256fab9 | |||
| b8d1d8b958 | |||
| 54ad42f12c | |||
| 8533c0478e | |||
| 04c4ed87e8 | |||
| c39b0d086a | |||
| 274cd58361 | |||
| 572e8710d9 | |||
| 1f2e934230 | |||
| 6d3996fc84 | |||
| 5bf78dd789 | |||
| 2b311fe7ef | |||
| 97726bebf8 |
13
README.md
13
README.md
@@ -25,7 +25,7 @@ Please use `git clone --recurse-submodules` to obtain the env
|
|||||||
|
|
||||||
### Manual Install(Debian/Fedora/Arch)
|
### Manual Install(Debian/Fedora/Arch)
|
||||||
|
|
||||||
https://share.shenmo.tech:23333/index.php?share/folder&user=1&sid=kr8z6Fqf
|
https://pan.shenmo.tech/index.php?share/folder&user=1&sid=Ye6kyxQE
|
||||||
|
|
||||||
(Dependencies are needed to upgrade for Ubuntu 18.04/deepin 15)
|
(Dependencies are needed to upgrade for Ubuntu 18.04/deepin 15)
|
||||||
|
|
||||||
@@ -33,6 +33,11 @@ https://cdn.d.store.deepinos.org.cn/store/depends/bubblewrap_0.3.1-4_amd64.deb
|
|||||||
|
|
||||||
https://cdn.d.store.deepinos.org.cn/aarch64-store/depends/bubblewrap_0.3.1-4_arm64.deb arm64
|
https://cdn.d.store.deepinos.org.cn/aarch64-store/depends/bubblewrap_0.3.1-4_arm64.deb arm64
|
||||||
|
|
||||||
|
### Amber-CE x86
|
||||||
|
|
||||||
|
Use LAT to run a x86 bookworm container. Can install x86 debs and run x86 apps
|
||||||
|
|
||||||
|
https://pan.shenmo.tech/index.php?share/folder&user=1&sid=qnJAY5BE
|
||||||
|
|
||||||
## Build Guide
|
## Build Guide
|
||||||
|
|
||||||
@@ -43,14 +48,14 @@ Here are the details:
|
|||||||
1. Install dependencies: sudo apt-get install arch-test debootstrap libnss-mymachines systemd-container
|
1. Install dependencies: sudo apt-get install arch-test debootstrap libnss-mymachines systemd-container
|
||||||
2. Enter the terminal at `src/opt/apps/cn.flamescion.bookworm-compatibility-mode/files` and execute `./build-container.sh amd64`.[for amd,other arch please change]
|
2. Enter the terminal at `src/opt/apps/cn.flamescion.bookworm-compatibility-mode/files` and execute `./build-container.sh amd64`.[for amd,other arch please change]
|
||||||
3. Wait for the container to complete.
|
3. Wait for the container to complete.
|
||||||
4.Get in to `bookworm-compatibility-mode` dir,run`fakeroot dpkg-deb -b src .`
|
4.Get in to `amber-ce-bookworm` dir,run`fakeroot dpkg-deb -b src .`
|
||||||
5.Wating for complete.
|
5.Wating for complete.
|
||||||
|
|
||||||
|
|
||||||
### Fedora
|
### Fedora
|
||||||
|
|
||||||
See https://gitee.com/amber-compatability-environment/ace-rpm
|
See https://gitee.com/amber-ce/ace-rpm
|
||||||
|
|
||||||
### Arch
|
### Arch
|
||||||
|
|
||||||
`yay -S cn.flamescion.bookworm-compatibility-mode`
|
`yay -S amber-ce-bookworm`
|
||||||
|
|||||||
12
README.zh.md
12
README.zh.md
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
### 手动安装(Debian/Fedora/Arch)
|
### 手动安装(Debian/Fedora/Arch)
|
||||||
|
|
||||||
https://share.shenmo.tech:23333/index.php?share/folder&user=1&sid=kr8z6Fqf
|
https://pan.shenmo.tech/index.php?share/folder&user=1&sid=Ye6kyxQE
|
||||||
|
|
||||||
(Ubuntu 18.04/deepin 15需要先安装依赖)
|
(Ubuntu 18.04/deepin 15需要先安装依赖)
|
||||||
|
|
||||||
@@ -27,6 +27,10 @@ https://cdn.d.store.deepinos.org.cn/store/depends/bubblewrap_0.3.1-4_amd64.deb
|
|||||||
|
|
||||||
https://cdn.d.store.deepinos.org.cn/aarch64-store/depends/bubblewrap_0.3.1-4_arm64.deb arm64
|
https://cdn.d.store.deepinos.org.cn/aarch64-store/depends/bubblewrap_0.3.1-4_arm64.deb arm64
|
||||||
|
|
||||||
|
### Amber-CE x86
|
||||||
|
|
||||||
|
利用 LAT 运行的x86容器,可安装和运行x86的deb https://pan.shenmo.tech/index.php?share/folder&user=1&sid=qnJAY5BE
|
||||||
|
|
||||||
## 构建指南
|
## 构建指南
|
||||||
|
|
||||||
### Debian
|
### Debian
|
||||||
@@ -38,15 +42,15 @@ https://cdn.d.store.deepinos.org.cn/aarch64-store/depends/bubblewrap_0.3.1-4_arm
|
|||||||
1. 安装依赖:sudo apt-get install arch-test debootstrap libnss-mymachines systemd-container
|
1. 安装依赖:sudo apt-get install arch-test debootstrap libnss-mymachines systemd-container
|
||||||
2. 在`src/opt/apps/cn.flamescion.bookworm-compatibility-mode/files`位置进入终端,执行`./build-container.sh amd64`[amd架构,其他架构同理]`
|
2. 在`src/opt/apps/cn.flamescion.bookworm-compatibility-mode/files`位置进入终端,执行`./build-container.sh amd64`[amd架构,其他架构同理]`
|
||||||
3. 等待容器打包完成
|
3. 等待容器打包完成
|
||||||
4. 进入`bookworm-compatibility-mode`目录,执行`fakeroot dpkg-deb -b src .`
|
4. 进入`amber-ce-bookworm`目录,执行`fakeroot dpkg-deb -b src .`
|
||||||
5. 等待打包完成
|
5. 等待打包完成
|
||||||
|
|
||||||
### Fedora
|
### Fedora
|
||||||
|
|
||||||
请前往 https://gitee.com/amber-compatability-environment/ace-rpm
|
请前往 https://gitee.com/amber-ce/ace-rpm
|
||||||
|
|
||||||
### Arch
|
### Arch
|
||||||
|
|
||||||
`yay -S cn.flamescion.bookworm-compatibility-mode`
|
`yay -S amber-ce-bookworm`
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -3,12 +3,11 @@ export PACKAGE_NAME="$DPKG_MAINTSCRIPT_PACKAGE"
|
|||||||
|
|
||||||
if [ "${PACKAGE_NAME}" = "cn.flamescion.bookworm-compatibility-mode" ];then
|
if [ "${PACKAGE_NAME}" = "cn.flamescion.bookworm-compatibility-mode" ];then
|
||||||
if [ -d /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env ];then
|
if [ -d /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env ];then
|
||||||
if [ "$(arch)" != "loongarch64" ];then
|
|
||||||
mv /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/ace-env
|
mv /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/ace-env
|
||||||
ln -sfv /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/ace-env /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env
|
ln -sfv /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/ace-env /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env
|
||||||
else
|
|
||||||
mv /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env /opt/apps/amber-ce-loongnix/files/ace-env
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -19,3 +18,6 @@ systemctl daemon-reload
|
|||||||
systemctl enable ace-bookworm-auto-upgrade
|
systemctl enable ace-bookworm-auto-upgrade
|
||||||
systemctl start ace-bookworm-auto-upgrade
|
systemctl start ace-bookworm-auto-upgrade
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
true
|
||||||
@@ -115,4 +115,4 @@ sudo -u $(who | awk '{print $1}' | head -n 1) bwrap --dev-bind $chrootEnvPath/ /
|
|||||||
locale-gen
|
locale-gen
|
||||||
bookworm-run update-locale LANG=$LANG
|
bookworm-run update-locale LANG=$LANG
|
||||||
chown -R root $chrootEnvPath
|
chown -R root $chrootEnvPath
|
||||||
chmod 777 -R $chrootEnvPath /usr/share/icons
|
chmod 777 -R $chrootEnvPath/usr/share/icons
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ ENV_VARS=(
|
|||||||
"PULSE_SERVER /run/user/\$uid/pulse/native"
|
"PULSE_SERVER /run/user/\$uid/pulse/native"
|
||||||
"PATH /flamescion-container-tools/bin-override:\$PATH"
|
"PATH /flamescion-container-tools/bin-override:\$PATH"
|
||||||
"IS_ACE_ENV 1"
|
"IS_ACE_ENV 1"
|
||||||
|
"XDG_DATA_DIRS /flamescion-container-tools/additional-data-dir-in-container:\$XDG_DATA_DIRS"
|
||||||
)
|
)
|
||||||
|
|
||||||
BIND_DIRS=(
|
BIND_DIRS=(
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ ENV_VARS=(
|
|||||||
"PULSE_SERVER /run/user/\$uid/pulse/native"
|
"PULSE_SERVER /run/user/\$uid/pulse/native"
|
||||||
"PATH /flamescion-container-tools/bin-override:\$PATH"
|
"PATH /flamescion-container-tools/bin-override:\$PATH"
|
||||||
"IS_ACE_ENV 1"
|
"IS_ACE_ENV 1"
|
||||||
|
"XDG_DATA_DIRS /flamescion-container-tools/additional-data-dir-in-container:\$XDG_DATA_DIRS"
|
||||||
)
|
)
|
||||||
|
|
||||||
BIND_DIRS=(
|
BIND_DIRS=(
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Package: ace-host-integration
|
Package: ace-host-integration
|
||||||
Version: 1.2.1
|
Version: 1.2.2
|
||||||
Section: misc
|
Section: misc
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Depends: bash
|
Depends: bash
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
# File in this dir will be seen as one of XDG_DATA_DIRS in ACE container.
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Exec=xdg-open %U
|
||||||
|
MimeType=inode/directory;application/x-mimearchive;x-scheme-handler/http;x-scheme-handler/https;application/msword;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.ms-excel;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.ms-powerpoint;application/vnd.openxmlformats-officedocument.presentationml.presentation;application/x-gzip;application/zip;application/rar;application/x-tar;application/pdf;application/rtf;image/gif;image/jpeg;image/jp2;image/png;image/tiff;image/bmp;image/svg+xml;image/webp;image/x-icon;application/kswps;application/kset;application/ksdps;application/x-photoshop;application/x-coreldraw;application/x-shockwave-flash;text/plain;application/x-javascript;text/javascript;text/css;text/html;application/xhtml+xml;text/xml;text/x-vcard;application/x-httpd-php;application/java-archive;application/vnd.android.package-archive;application/octet-stream;application/x-x509-user-cert;audio/mpeg;audio/midi;audio/x-wav;audio/x-mpegurl;audio/x-m4a;audio/ogg;audio/x-realaudio;video/mp4;video/mpeg;video/quicktime;video/x-m4v;video/x-ms-wmv;video/x-msvideo;video/webm;video/x-flv;application/xhtml_xml;
|
||||||
|
Name=ace-run-in-host-os
|
||||||
|
NoDisplay=true
|
||||||
|
Terminal=false
|
||||||
|
TryExec=
|
||||||
|
Type=Application
|
||||||
|
Version=1.0
|
||||||
|
|
||||||
@@ -18,6 +18,8 @@ fi
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
printf "ACE: Setting up groups...\n"
|
printf "ACE: Setting up groups...\n"
|
||||||
# If not existing, ensure we have a group for our user.
|
# If not existing, ensure we have a group for our user.
|
||||||
if ! grep -q "^${container_user_name}:" /etc/group; then
|
if ! grep -q "^${container_user_name}:" /etc/group; then
|
||||||
@@ -121,8 +123,9 @@ ln -sfv /flamescion-container-tools/bin-override/host-spawn-$(uname -m) /flamesc
|
|||||||
|
|
||||||
apt install --reinstall /flamescion-container-tools/ace-host-integration.deb
|
apt install --reinstall /flamescion-container-tools/ace-host-integration.deb
|
||||||
|
|
||||||
cd /
|
|
||||||
mkdir -p /flamescion-container-tools/data-dir
|
|
||||||
cd /flamescion-container-tools/data-dir/
|
cd /flamescion-container-tools/data-dir/
|
||||||
ln -sfv ../../usr/share/applications/ .
|
ln -sfv ../../usr/share/applications/ .
|
||||||
ln -sfv ../../usr/share/icons/ .
|
ln -sfv ../../usr/share/icons/ .
|
||||||
|
update-desktop-database /usr/share/applications || true
|
||||||
|
update-mime-database /usr/share/mime || true
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
# App in this dir will be integrated to host os. Will create symbol link when installing
|
||||||
Reference in New Issue
Block a user