Compare commits

...

23 Commits

Author SHA1 Message Date
f2f0c58436 update debian/changelog.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2025-02-14 12:19:57 +00:00
c5819be7d5 !8 feat: Support Nvidia Accelerate
Merge pull request !8 from shenmo/N/A
2025-02-12 15:16:38 +00:00
1f7a026401 feat: Support Nvidia Accelerate
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2025-02-12 15:15:00 +00:00
fa745aed12 12.5.16 2025-02-06 14:04:28 +08:00
5a7c2b41d4 update: 重新使用dpkg构建 ACE Host Integration 2025-02-06 14:02:54 +08:00
ded8320249 修改文案 2025-01-22 20:20:19 +08:00
1db8d4b98c adjust: 默认目录改成 amber-ce-bookworm 2025-01-17 21:13:16 +08:00
1ad4a2bfd4 update ignore 2025-01-17 21:12:43 +08:00
b8bbe9a672 adjust: now we don't depend dpkg in building 2024-12-24 11:26:20 +08:00
250e48b98e update debian/changelog.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-12-19 04:54:05 +00:00
5f54c92b84 fix: can not pass args via bwrap
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-12-19 04:51:04 +00:00
df0b714c8b https://share.spark-app.store/index.php?share/folder&user=1&sid=wHP86Kp4
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-12-15 07:03:06 +00:00
cd1f0c0c22 Nope we don't proxy mimetypes as it cause dde down
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-12-07 10:44:51 +00:00
7c2dc1bbb2 update: build-container.sh to adapt debian sid 2024-12-06 23:18:15 +08:00
338f647763 ```
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-11-28 17:35:36 +00:00
286ced4488 yay -S amber-ce-bookworm
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-11-28 17:22:57 +00:00
f8c7a53864 https://pan.huang1111.cn/s/jR1GdUy
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-11-13 05:04:49 +00:00
5b09d279ea readme
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-11-12 17:50:20 +00:00
7fdb227c93 readme
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-11-12 17:33:49 +00:00
b9a0472b78 update README.zh.md.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-11-12 16:52:33 +00:00
e4cc26e3ea update .workflow/Debian-Build-amd64.yml.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-11-12 11:28:44 +00:00
09a12d3595 update Debian-Build-amd64.yml 2024-11-12 10:28:32 +00:00
fc711b285e update debian/control.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2024-11-12 10:10:09 +00:00
45 changed files with 45 additions and 69 deletions

4
.gitignore vendored
View File

@@ -1,2 +1,2 @@
*.deb #*.deb
src/opt/apps/cn.flamescion.bookworm-compatibility-mode/files/ace-env.tar.xz src/opt/apps/amber-ce-bookworm/files/ace-env.tar.xz

View File

@@ -29,17 +29,17 @@ stages:
- apt build-dep . -y - apt build-dep . -y
- dpkg-buildpackage -b -us -uc - dpkg-buildpackage -b -us -uc
- cd .. - cd ..
- ls -all - ''
- mkdir target - mkdir target
- for f in $(find . -type f -name "*.deb") - for f in $(find . -type f -name "*.deb")
- 'do ' - 'do '
- mv $f target - mv -v $f target
- done - done
- '' - ls -all
artifacts: artifacts:
- name: BUILD_ARTIFACT - name: BUILD_ARTIFACT
path: path:
- ./target - ../target/
notify: [] notify: []
strategy: strategy:
retry: '0' retry: '0'

View File

@@ -16,42 +16,26 @@ With the help of bubblewrap, a super tiny container solution, you can run a `Deb
Please use `git clone --recurse-submodules` to obtain the env Please use `git clone --recurse-submodules` to obtain the env
## Install Guide ## Install GuideDebian/Fedora/Arch)
Share Linkhttps://share.spark-app.store/index.php?share/folder&user=1&sid=wHP86Kp4
### Quick Install (Need to install Spark Store first)
[spk://store/tools/cn.flamescion.bookworm-compatibility-mode/](https://spk-resolv.spark-app.store/?spk=spk://store/tools/cn.flamescion.bookworm-compatibility-mode/)
### Manual InstallDebian/Fedora/Arch)
https://pan.huang1111.cn/s/jR1GdUy
Ubuntu 18.04 Need install https://packages.debian.org/buster/bubblewrap Ubuntu 18.04 Need install https://packages.debian.org/buster/bubblewrap
Arch: `yay -S amber-ce-bookworm`
### Amber-CE x86
Use LAT to run a x86 bookworm container. Can install x86 debs and run x86 apps
https://pan.huang1111.cn/s/P63D6Cm
--- ---
## Build Guide ## Build From.Source
### Debian ### Debian
Build the container first then build the package. Container at `src/opt/apps/cn.flamescion.bookworm-compatibility-mode/files` ```
Here are the details: apt build-dep .
1. Install dependencies: sudo apt-get install arch-test debootstrap libnss-mymachines systemd-container dpkg-buildpackage -us -uc -b
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.
4.Get in to `amber-ce-bookworm` dir,run`fakeroot dpkg-deb -b src .`
5.Wating for complete.
### Fedora ### Fedora

View File

@@ -11,42 +11,26 @@
请使用 `git clone --recurse-submodules` 来获取 请使用 `git clone --recurse-submodules` 来获取
## 安装指南 ## 安装指南 Debian/Fedora/Arch)
### 快捷安装 (需要安装星火应用商店)
[spk://store/tools/cn.flamescion.bookworm-compatibility-mode/](https://spk-resolv.spark-app.store/?spk=spk://store/tools/cn.flamescion.bookworm-compatibility-mode/) 分享链接https://share.spark-app.store/index.php?share/folder&user=1&sid=wHP86Kp4
### 手动安装Debian/Fedora/Arch)
https://pan.huang1111.cn/s/jR1GdUy
Ubuntu 18.04 需要安装 https://packages.debian.org/buster/bubblewrap Ubuntu 18.04 需要安装 https://packages.debian.org/buster/bubblewrap
Arch`yay -S amber-ce-bookworm`
### Amber-CE x86
利用 LAT 运行的x86容器可安装和运行x86的deb
https://pan.huang1111.cn/s/P63D6Cm
--- ---
## 构建指南 ## 从源代码构建指南
### Debian ### Debian
先构建容器再打包,容器位置在`src/opt/apps/cn.flamescion.bookworm-compatibility-mode/files` ```
apt build-dep .
下面是详细步骤: dpkg-buildpackage -us -uc -b
```
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架构其他架构同理]`
3. 等待容器打包完成
4. 进入`amber-ce-bookworm`目录,执行`fakeroot dpkg-deb -b src .`
5. 等待打包完成
### Fedora ### Fedora
@@ -56,4 +40,4 @@ https://pan.huang1111.cn/s/P63D6Cm
`yay -S amber-ce-bookworm` `yay -S amber-ce-bookworm`
--- ---

7
debian/changelog vendored
View File

@@ -1,8 +1,11 @@
amber-ce-bookworm (12.4.14-4) UNRELEASED; urgency=low amber-ce-bookworm (12.6.0) UNRELEASED; urgency=low
* fix: Can't pass args via bwrap
* fix: Auto upgrade service always pop up upgradable notifier * fix: Auto upgrade service always pop up upgradable notifier
* fix: /etc/apt/sources.list only request main repo * fix: /etc/apt/sources.list only request main repo
* fix: sudo function error: Need sudo sudo to really sudo * fix: sudo function error: Need sudo sudo to really sudo
* fix: ACE Host Integration fail * fix: ACE Host Integration fail
* adjust: remove dpkg from building depends
* 把默认目录改为 amber-ce-bookworm
* 支持使用Nvidia驱动加速
-- shenmo <shenmo@spark-app.store> Wed, 25 Sep 2024 23:15:49 +0800 -- shenmo <shenmo@spark-app.store> Wed, 25 Sep 2024 23:15:49 +0800

View File

@@ -2,17 +2,21 @@
export PACKAGE_NAME="$DPKG_MAINTSCRIPT_PACKAGE" 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/ ] || [[ -f "/opt/apps/amber-ce-bookworm" ]];then
mv /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/ace-env unlink /opt/apps/amber-ce-bookworm
ln -sfv /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/ace-env /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env mv -v /opt/apps/cn.flamescion.bookworm-compatibility-mode/ /opt/apps/amber-ce-bookworm/
ln -sv ./amber-ce-bookworm /opt/apps/cn.flamescion.bookworm-compatibility-mode
fi fi
fi fi
/opt/apps/$PACKAGE_NAME/files/bin/ace-init /opt/apps/$PACKAGE_NAME/files/bin/ace-init
if [ "${PACKAGE_NAME}" = "cn.flamescion.bookworm-compatibility-mode" ];then if [ "${PACKAGE_NAME}" = "cn.flamescion.bookworm-compatibility-mode" ];then
systemctl daemon-reload systemctl daemon-reload
systemctl enable ace-bookworm-auto-upgrade systemctl enable ace-bookworm-auto-upgrade

View File

@@ -2,6 +2,7 @@
PACKAGE_NAME="$DPKG_MAINTSCRIPT_PACKAGE" PACKAGE_NAME="$DPKG_MAINTSCRIPT_PACKAGE"
if [ "${PACKAGE_NAME}" = "cn.flamescion.bookworm-compatibility-mode" ];then if [ "${PACKAGE_NAME}" = "cn.flamescion.bookworm-compatibility-mode" ];then
PACKAGE_NAME=amber-ce-bookworm # 为了后面正确清理
systemctl stop ace-bookworm-auto-upgrade systemctl stop ace-bookworm-auto-upgrade
systemctl disable ace-bookworm-auto-upgrade systemctl disable ace-bookworm-auto-upgrade
fi fi

2
debian/control vendored
View File

@@ -2,7 +2,7 @@ Source: amber-ce-bookworm
Section: misc Section: misc
Priority: optional Priority: optional
Maintainer: shenmo <shenmo@spark-app.store> Maintainer: shenmo <shenmo@spark-app.store>
Build-Depends: debhelper-compat (= 13),debootstrap,systemd-container Build-Depends: debhelper-compat (= 13),debootstrap,systemd-container,sudo
Standards-Version: 4.5.1 Standards-Version: 4.5.1
Homepage: https://gitee.com/amber-ce/amber-ce-bookworm/ Homepage: https://gitee.com/amber-ce/amber-ce-bookworm/
Rules-Requires-Root: binary-targets Rules-Requires-Root: binary-targets

2
debian/rules vendored
View File

@@ -6,7 +6,7 @@
dh $@ dh $@
override_dh_auto_configure: override_dh_auto_configure:
cd src/opt/apps/cn.flamescion.bookworm-compatibility-mode/files && bash build-container.sh $(shell uname -m) cd src/opt/apps/amber-ce-bookworm/files && bash build-container.sh $(shell uname -m)
override_dh_dwz: override_dh_dwz:

View File

@@ -1 +0,0 @@
./cn.flamescion.bookworm-compatibility-mode/

View File

Before

Width:  |  Height:  |  Size: 196 KiB

After

Width:  |  Height:  |  Size: 196 KiB

View File

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 134 KiB

View File

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 118 KiB

View File

@@ -107,8 +107,7 @@ BIND_DIRS=(
"--dev-bind-try /mnt /mnt" "--dev-bind-try /mnt /mnt"
"--dev-bind-try /tmp /tmp" "--dev-bind-try /tmp /tmp"
"--dev-bind-try /data /data" "--dev-bind-try /data /data"
"--dev /dev" "--dev-bind-try /dev /dev"
"--dev-bind-try /dev/dri /dev/dri"
"--proc /proc" "--proc /proc"
"--dev-bind /sys /sys" "--dev-bind /sys /sys"
"--dev-bind /run /run" "--dev-bind /run /run"

View File

@@ -15,14 +15,14 @@ if [ "$1" = "amd64" ] || [ "$1" = "x86_64" ];then
ARCH="amd64" ARCH="amd64"
ARCH_ANOTHERWAY="x64" ARCH_ANOTHERWAY="x64"
cd "`dirname $0`" cd "`dirname $0`"
sudo debootstrap --components=main,contrib,non-free,non-free-firmware --include=libnotify-bin,apt-utils,bash-completion,bc,curl,dialog,diffutils,findutils,gnupg2,less,libnss-myhostname,libvte-common,lsof,ncurses-base,passwd,pinentry-curses,procps,sudo,time,util-linux,wget,libegl1-mesa,libgl1-mesa-glx,libvulkan1,mesa-vulkan-drivers,locales,libglib2.0-bin --arch=${ARCH} bookworm ./ace-env https://mirrors.ustc.edu.cn/debian/ sudo debootstrap --components=main,contrib,non-free,non-free-firmware --include=libnotify-bin,apt-utils,bash-completion,bc,curl,dialog,diffutils,findutils,gnupg2,less,libnss-myhostname,libvte-common,lsof,ncurses-base,passwd,pinentry-curses,procps,sudo,time,util-linux,wget,libegl1,libvulkan1,mesa-vulkan-drivers,locales,libglib2.0-bin --arch=${ARCH} bookworm ./ace-env https://mirrors.ustc.edu.cn/debian/
elif [ "$1" = "arm64" ] || [ "$1" = "arm" ]|| [ "$1" = "aarch64" ];then elif [ "$1" = "arm64" ] || [ "$1" = "arm" ]|| [ "$1" = "aarch64" ];then
ARCH="arm64" ARCH="arm64"
ARCH_ANOTHERWAY="arm64" ARCH_ANOTHERWAY="arm64"
cd "`dirname $0`" cd "`dirname $0`"
sudo debootstrap --components=main,contrib,non-free,non-free-firmware --include=libnotify-bin,apt-utils,bash-completion,bc,curl,dialog,diffutils,findutils,gnupg2,less,libnss-myhostname,libvte-common,lsof,ncurses-base,passwd,pinentry-curses,procps,sudo,time,util-linux,wget,libegl1-mesa,libgl1-mesa-glx,libvulkan1,mesa-vulkan-drivers,locales,libglib2.0-bin --arch=${ARCH} bookworm ./ace-env https://mirrors.ustc.edu.cn/debian/ sudo debootstrap --components=main,contrib,non-free,non-free-firmware --include=libnotify-bin,apt-utils,bash-completion,bc,curl,dialog,diffutils,findutils,gnupg2,less,libnss-myhostname,libvte-common,lsof,ncurses-base,passwd,pinentry-curses,procps,sudo,time,util-linux,wget,libegl1,libvulkan1,mesa-vulkan-drivers,locales,libglib2.0-bin --arch=${ARCH} bookworm ./ace-env https://mirrors.ustc.edu.cn/debian/
elif [ "$1" = "loong" ] || [ "$1" = "loong64" ];then elif [ "$1" = "loong" ] || [ "$1" = "loong64" ];then
ARCH="loong64" ARCH="loong64"
ARCH_ANOTHERWAY="loong64" ARCH_ANOTHERWAY="loong64"

View File

@@ -1,2 +1,2 @@
#!/bin/bash #!/bin/bash
host-spawn /opt/apps/amber-ce-bookworm/files/bin/bookworm-run-bwrap $@ host-spawn /opt/apps/amber-ce-bookworm/files/bin/bookworm-run-bwrap "$@"

View File

@@ -127,6 +127,7 @@ apt install --reinstall /flamescion-container-tools/ace-host-integration.deb
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/ .
ln -svf ../../usr/share/mime . #ln -svf ../../usr/share/mime .
rm -vf ./mime
update-desktop-database /usr/share/applications || true update-desktop-database /usr/share/applications || true
update-mime-database /usr/share/mime || true update-mime-database /usr/share/mime || true

View File

@@ -0,0 +1 @@
./amber-ce-bookworm/