treewide: Switch to VSCodium
This commit is contained in:
parent
77642aa5fa
commit
2e6eeeb0ae
20
build.sh
20
build.sh
@ -2,23 +2,17 @@
|
||||
|
||||
sed -e
|
||||
|
||||
rm PKGBUILD* || true
|
||||
rm *.tar.gz
|
||||
|
||||
wget https://raw.githubusercontent.com/KaOS-Community-Packages/vscode/master/PKGBUILD
|
||||
sed -i "s/^arch=('x86_64')//g" PKGBUILD
|
||||
sed -i "s/ln -s/#ln -s/g" PKGBUILD
|
||||
sed -i "s/VSCode-linux-x64/VSCode-linux-$1/g" PKGBUILD
|
||||
source PKGBUILD
|
||||
|
||||
pkgname=vscodium
|
||||
pkgver=1.65.0
|
||||
srcdir=$ROOT/build/aarch64-linux-gnu/app
|
||||
pkgdir=$srcdir/install
|
||||
mkdir -p $srcdir $pkgdir
|
||||
|
||||
wget https://az764295.vo.msecnd.net/stable/b5205cc8eb4fbaa726835538cd82372cc0222d43/code-stable-$1-1646219865.tar.gz
|
||||
tar xvf ./code-stable-$1-1646219865.tar.gz -C $srcdir
|
||||
|
||||
package
|
||||
wget https://github.com/VSCodium/vscodium/releases/download/$pkgver/VSCodium-linux-$1-$pkgver.tar.gz
|
||||
mkdir -p $srcdir/vscodium/VSCodium-linux-$1-$pkgver
|
||||
tar xvf ./VSCodium-linux-$1-$pkgver.tar.gz -C $pkgdir
|
||||
|
||||
CLICK_ARCH=$(dpkg-architecture -qDEB_HOST_ARCH)
|
||||
CLICK_FRAMEWORK=ubuntu-sdk-16.04.5
|
||||
@ -26,7 +20,7 @@ CLICK_FRAMEWORK=ubuntu-sdk-16.04.5
|
||||
cp $ROOT/manifest.json $pkgdir/
|
||||
sed -i "s/@CLICK_ARCH@/$CLICK_ARCH/g" $pkgdir/manifest.json
|
||||
sed -i "s/@CLICK_FRAMEWORK@/$CLICK_FRAMEWORK/g" $pkgdir/manifest.json
|
||||
cp $ROOT/code.apparmor $pkgdir/
|
||||
cp $ROOT/code.desktop $pkgdir/
|
||||
cp $ROOT/codium.apparmor $pkgdir/
|
||||
cp $ROOT/codium.desktop $pkgdir/
|
||||
|
||||
exit 0
|
||||
|
@ -3,7 +3,7 @@
|
||||
"builder": "custom",
|
||||
"default": "clean build click-build",
|
||||
"kill": "code*",
|
||||
"build": "bash ${ROOT}/build.sh arm64",
|
||||
"build": "bash ${ROOT}/build.sh ${ARCH}",
|
||||
"dependencies_host": [
|
||||
"libgles2",
|
||||
"wget"
|
||||
|
@ -1,9 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Name=Visual Studio Code
|
||||
Exec=env GDK_BACKEND=x11 GDK_SCALE=2 ./opt/vscode/code --force-device-scale-factor=2 %U
|
||||
Icon=./opt/vscode/resources/app/resources/linux/code.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
X-Ubuntu-Touch=true
|
||||
X-Ubuntu-Splash-Color=#FFFFFF
|
||||
X-Ubuntu-XMir-Enable=true
|
9
codium.desktop
Normal file
9
codium.desktop
Normal file
@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Name=VSCodium
|
||||
Exec=env GDK_BACKEND=x11 GDK_SCALE=2 ./codium --force-device-scale-factor=2 %U
|
||||
Icon=./resources/app/resources/linux/code.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
X-Ubuntu-Touch=true
|
||||
X-Ubuntu-Splash-Color=#FFFFFF
|
||||
X-Ubuntu-XMir-Enable=true
|
@ -1,15 +1,15 @@
|
||||
{
|
||||
"name": "code.visualstudio.com",
|
||||
"description": "Code Editor by Microsoft",
|
||||
"name": "codium.vscodium.com",
|
||||
"description": "Open Source Code Editor",
|
||||
"architecture": "@CLICK_ARCH@",
|
||||
"title": "Visual Studio Code",
|
||||
"title": "VSCodium",
|
||||
"hooks": {
|
||||
"code": {
|
||||
"apparmor": "code.apparmor",
|
||||
"desktop": "code.desktop"
|
||||
"apparmor": "codium.apparmor",
|
||||
"desktop": "codium.desktop"
|
||||
}
|
||||
},
|
||||
"version": "1.64.2",
|
||||
"version": "1.65.0",
|
||||
"maintainer": "Alfred Neumayer <dev.beidl@gmail.com>",
|
||||
"framework" : "@CLICK_FRAMEWORK@"
|
||||
}
|
||||
|
Reference in New Issue
Block a user