mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
remove debian packaging hack
This commit is contained in:
parent
62ecd1ad76
commit
d0383f3044
@ -5,18 +5,3 @@ echo "Packaging debian x64 distribution..."
|
|||||||
VERSION=`jq -r ".version" package.json`
|
VERSION=`jq -r ".version" package.json`
|
||||||
|
|
||||||
./node_modules/.bin/electron-installer-debian --config bin/deb-options.json --options.version=${VERSION} --arch amd64
|
./node_modules/.bin/electron-installer-debian --config bin/deb-options.json --options.version=${VERSION} --arch amd64
|
||||||
|
|
||||||
|
|
||||||
# hacky stop-gag measure to produce debian compatible XZ compressed debs until this is fixed: https://github.com/electron-userland/electron-installer-debian/issues/272
|
|
||||||
cd dist
|
|
||||||
ar x trilium_${VERSION}_amd64.deb
|
|
||||||
rm trilium_${VERSION}_amd64.deb
|
|
||||||
# recompress
|
|
||||||
< control.tar.zst zstd -d | xz > control.tar.xz
|
|
||||||
< data.tar.zst zstd -d | xz > data.tar.xz
|
|
||||||
# create deb archive (I really do not know, what argument "sdsd" is for but something is required for ar to create the archive as desired)
|
|
||||||
ar -m -c -a sdsd trilium_${VERSION}_amd64.deb debian-binary control.tar.xz data.tar.xz
|
|
||||||
|
|
||||||
rm control* data* debian-binary
|
|
||||||
|
|
||||||
echo "Converted to XZ deb"
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"src": "dist/trilium-linux-x64",
|
"src": "dist/trilium-linux-x64",
|
||||||
"dest": "dist/",
|
"dest": "dist/",
|
||||||
|
"compression": "xz",
|
||||||
"name": "trilium",
|
"name": "trilium",
|
||||||
"productName": "Trilium Notes",
|
"productName": "Trilium Notes",
|
||||||
"genericName": "Note taker",
|
"genericName": "Note taker",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user