Open maboloshi opened 4 years ago
/home/build/packages/builder/x86_64/`miktex-2.9.7300-r1.apk /home/builder/packages/home/x86_64/miktex-2.9.7300-r1.apk
docker build --target builder -t maboloshi/miktex-builder:builder . /home/builder/packages/home/x86_64/miktex-2.9.7300-r1.apk docker run -it \ --entrypoint /bin/ash \ maboloshi/miktex-builder:builder
docker build -t maboloshi/miktex-builder:latest -f Dockerfile . docker run --name builder1 -it \ -v "E:\【A_工程目录】\miktex-builder:/home/builder/work" \ --entrypoint /bin/ash \ maboloshi/miktex-builder:latest
默认包生成路径
mkdir -p "$REPODEST"/$repo/${subpkgarch/noarch/$CARCH}
cat control.tar.gz data.tar.gz > "$REPODEST"/$repo/${subpkgarch/noarch/$CARCH}/$apk
默认$REPODEST
~/packages
$repo实际表示APKBUILD
所在的当前目录
miktex 打包测试(人工)
构建 builder 环境
编译和打包测试
进入docker环境后
直到调试到不报错基本就OK了 最后可以直接使用
abuild -r
进行完整测试 APK默认输出路径:/home/build/packages/builder/x86_64/
miktex-2.9.7300-r1.apk国内镜像源设置
Apline 镜像源设置
编辑
Dockerfile
添加sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
miktex 镜像源设置:
编辑
APKBUILD
文件在-DWITH_MAN_PAGES=FALSE \
下添加:-DMIKTEX_DEFAULT_REPOSITORY=https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/win32/miktex/tm/packages/ \