masscode: auto updated to 4.0.1-1
It has been built because: * nvchecker detects the following updates: aur(0): 3.12.1-1 -> 4.0.1-1
This commit is contained in:
parent
ee379d7b51
commit
a7d05da9ed
|
@ -1,37 +1,41 @@
|
||||||
# Maintainer: Anton Reshetov
|
# Maintainer: Anton Reshetov
|
||||||
|
|
||||||
pkgname=masscode
|
pkgname=masscode
|
||||||
pkgver=3.12.1
|
pkgver=4.0.1
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A free and open source code snippets manager for developers "
|
pkgdesc="A free and open source code snippets manager for developers "
|
||||||
arch=("x86_64")
|
arch=("x86_64")
|
||||||
url="https://github.com/massCodeIO/massCode"
|
url="https://github.com/massCodeIO/massCode"
|
||||||
license=("AGPL-3.0")
|
license=("AGPL-3.0")
|
||||||
depends=(electron)
|
depends=(electron34)
|
||||||
makedepends=(squashfs-tools)
|
source=("https://github.com/massCodeIO/massCode/releases/download/v${pkgver}/massCode-${pkgver}.AppImage"
|
||||||
source=("https://github.com/massCodeIO/massCode/releases/download/v${pkgver}/masscode_${pkgver}_amd64.snap"
|
"masscode.png::https://raw.githubusercontent.com/massCodeIO/massCode/master/build/icons/256x256.png"
|
||||||
"masscode.png::https://raw.githubusercontent.com/massCodeIO/massCode/master/config/icons/256x256.png"
|
|
||||||
"masscode.desktop"
|
"masscode.desktop"
|
||||||
|
"masscode.sh"
|
||||||
)
|
)
|
||||||
sha256sums=('efef4d857d4bfff9318577306410789c5404f5c4c12b5206eb213b1a12519fdc'
|
sha256sums=('70cdc0a128957bd5ca52d89496dd96254cde8cfaf769297c1dc87b126f53b405'
|
||||||
'6e54dbd534b364727ca2514e21a49742a939c454867f46da113bba2c3d2777ec'
|
'dc0d0519524662fde9e31acadf2ef4c3cf76729c59f8aca306bffe57779e9aa2'
|
||||||
'a2e9a02993e1b8efc74fbee597219a84eeb776d41d1dcf0ae9742c2d9fcb9f15')
|
'a2e9a02993e1b8efc74fbee597219a84eeb776d41d1dcf0ae9742c2d9fcb9f15'
|
||||||
|
'74aad10be03239734f7096833bb5c91c1f0e3d6a9d92bbd38f1d418efcd58b70')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
unsquashfs "masscode_${pkgver}_amd64.snap"
|
sed -i 's#__ROOT_DIR__#/usr/lib/masscode#g' masscode.sh
|
||||||
|
sed -i 's#__ELECTRON__#/usr/bin/electron34#g' masscode.sh
|
||||||
|
chmod +x ./massCode-${pkgver}.AppImage
|
||||||
|
./massCode-${pkgver}.AppImage --appimage-extract
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
install -d "$pkgdir/opt/masscode"
|
install -d "$pkgdir/usr/lib/masscode/app"
|
||||||
install -d "$pkgdir/usr/bin"
|
install -d "$pkgdir/usr/bin"
|
||||||
install -d "$pkgdir/usr/share/icons"
|
install -d "$pkgdir/usr/share/icons"
|
||||||
install -d "$pkgdir/usr/share/applications"
|
install -d "$pkgdir/usr/share/applications"
|
||||||
|
|
||||||
cp masscode.png "$pkgdir/usr/share/icons"
|
install -m755 masscode.sh "$pkgdir/usr/bin/masscode"
|
||||||
echo "#!/bin/env bash
|
install -m644 masscode.png "$pkgdir/usr/share/icons/masscode.png"
|
||||||
NODE_ENV='' electron /opt/masscode/app.asar" >> "$pkgdir/usr/bin/masscode"
|
install -m644 masscode.desktop "$pkgdir/usr/share/applications/masscode.desktop"
|
||||||
chmod +x "$pkgdir/usr/bin/masscode"
|
|
||||||
cp masscode.desktop "$pkgdir/usr/share/applications"
|
cd squashfs-root/resources
|
||||||
cd squashfs-root
|
find . -type d -exec install -d "$pkgdir/usr/lib/masscode/app/{}" \;
|
||||||
cp resources/app.asar "$pkgdir/opt/masscode"
|
find . -type f -exec install -m644 "{}" "$pkgdir/usr/lib/masscode/app/{}" \;
|
||||||
}
|
}
|
||||||
|
|
21
repo/masscode/masscode.sh
Executable file
21
repo/masscode/masscode.sh
Executable file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Usage:
|
||||||
|
# ./start.sh
|
||||||
|
# Later you can replace __ROOT_DIR__ and __ELECTRON__ using sed
|
||||||
|
|
||||||
|
root_dir="__ROOT_DIR__"
|
||||||
|
electron_bin="__ELECTRON__"
|
||||||
|
|
||||||
|
# Make sure app.asar exists
|
||||||
|
if [ ! -f "$root_dir/app/app.asar" ]; then
|
||||||
|
echo "Error: app.asar not found under $root_dir/app"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Tell electron-updater: this is running inside AppImage
|
||||||
|
export APPIMAGE=1
|
||||||
|
|
||||||
|
# Run
|
||||||
|
echo "Starting Electron app (root directory = $root_dir)"
|
||||||
|
ELECTRON_FORCE_IS_PACKAGED=true "$electron_bin" "$root_dir/app/app.asar" --no-sandbox "$@"
|
Loading…
Reference in a new issue