Date: Friday, May 5, 2023 @ 08:55:26 Author: mtorromeo Revision: 1458857
archrelease: copy trunk to community-x86_64 Added: code/repos/community-x86_64/PKGBUILD (from rev 1458856, code/trunk/PKGBUILD) code/repos/community-x86_64/clipath.patch (from rev 1458856, code/trunk/clipath.patch) code/repos/community-x86_64/code.js (from rev 1458856, code/trunk/code.js) code/repos/community-x86_64/code.sh (from rev 1458856, code/trunk/code.sh) code/repos/community-x86_64/product_json.diff (from rev 1458856, code/trunk/product_json.diff) Deleted: code/repos/community-x86_64/PKGBUILD code/repos/community-x86_64/clipath.patch code/repos/community-x86_64/code.js code/repos/community-x86_64/code.sh code/repos/community-x86_64/product_json.diff -------------------+ PKGBUILD | 280 +++++++++++++++++++++++++--------------------------- clipath.patch | 118 ++++++++++----------- code.js | 60 +++++------ code.sh | 70 ++++++------- product_json.diff | 44 ++++---- 5 files changed, 283 insertions(+), 289 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2023-05-05 08:55:02 UTC (rev 1458856) +++ PKGBUILD 2023-05-05 08:55:26 UTC (rev 1458857) @@ -1,143 +0,0 @@ -# Maintainer: Filipe Laíns (FFY00) <la...@archlinux.org> -# Contributor: Michael Hansen <zrax0111 gmail com> -# Contributor: Francisco Magalhães <franmagneto gmail com> - -pkgname=code -pkgdesc='The Open Source build of Visual Studio Code (vscode) editor' -# Important: Remember to check https://github.com/microsoft/vscode/wiki/How-to-Contribute#prerequisites for target node version -# NodeJS versioning cheatsheet: -# - carbon: 8 -# - dubnium: 10 -# - erbium: 12 -# - fermium: 14 -# - gallium: 16 -# Important: Remember to check https://github.com/microsoft/vscode/blob/master/.yarnrc (choose correct tag) for target electron version -_electron=electron19 -pkgver=1.77.3 -pkgrel=2 -arch=('x86_64') -url='https://github.com/microsoft/vscode' -license=('MIT') -depends=($_electron 'libsecret' 'libx11' 'libxkbfile' 'ripgrep') -optdepends=('bash-completion: Bash completions' - 'zsh-completions: ZSH completitons' - 'x11-ssh-askpass: SSH authentication') -makedepends=('git' 'gulp' 'npm' 'python' 'yarn' 'nodejs-lts-gallium' 'desktop-file-utils') -provides=('vscode') -source=("$pkgname::git+$url.git#tag=$pkgver" - 'code.js' - 'code.sh' - 'product_json.diff' - 'clipath.patch') -sha512sums=('SKIP' - '6e8ee1df4dd982434a8295ca99e786a536457c86c34212546e548b115081798c5492a79f99cd5a3f1fa30fb71d29983aaabc2c79f4895d4a709d8354e9e2eade' - 'f949779dde4e3fe72f8a62db20edffc3e093c7209981e089f91e7d369274639a66b8cbf95cbdea4f3ea36e219d91e0abadb30f9c8e19e37d6077f9545e55a9a0' - 'b1aa0d7c5b3e3e8ba1172822d75ea38e90efc431b270e0b4ca9e45bf9c0be0f60922c8618969ef071b5b6dbd9ac9f030294f1bf49bcc28c187b46d113dca63a7' - '53c68ed0a4bffa4b19e5ca3de8322870611bca790db84ad60033f1a6ca79d2d95ddd00cfceec2ff4e922240537b5d002c6385e083cf1d0e69df867b5e1d8e197') - -# Even though we don't officially support other archs, let's -# allow the user to use this PKGBUILD to compile the package -# for his architecture -case "$CARCH" in - i686) - _vscode_arch=ia32 - ;; - x86_64) - _vscode_arch=x64 - ;; - armv7h) - _vscode_arch=arm - ;; - *) - # Needed for mksrcinfo - _vscode_arch=DUMMY - ;; -esac - -prepare() { - cd $pkgname - - # Change electron binary name to the target electron - sed -e "s|name=electron|name=$_electron |" \ - -e '/PKGBUILD/d' \ - -i ../code.sh - sed "1s|.*|#!/usr/lib/$_electron/electron|" -i ../code.js - - # This patch no longer contains proprietary modifications. - # See https://github.com/Microsoft/vscode/issues/31168 for details. - patch -p0 < ../product_json.diff - - # Set the commit and build date - local _commit=$(git rev-parse HEAD) - local _datestamp=$(date -u -Is | sed 's/\+00:00/Z/') - sed -e "s/@COMMIT@/$_commit/" -e "s/@DATE@/$_datestamp/" -i product.json - - # Build native modules for system electron - local _target=$(</usr/lib/$_electron/version) - sed -i "s/^target .*/target \"${_target//v/}\"/" .yarnrc - - # Patch appdata and desktop file - sed -i 's|/usr/share/@@NAME@@/@@NAME@@|@@NAME@@|g - s|@@NAME_SHORT@@|Code|g - s|@@NAME_LONG@@|Code - OSS|g - s|@@NAME@@|code-oss|g - s|@@ICON@@|com.visualstudio.code.oss|g - s|@@EXEC@@|/usr/bin/code-oss|g - s|@@LICENSE@@|MIT|g - s|@@URLPROTOCOL@@|vscode|g - s|inode/directory;||' resources/linux/code{.appdata.xml,.desktop,-url-handler.desktop} - - desktop-file-edit --set-key StartupWMClass --set-value code-oss resources/linux/code.desktop - - cp resources/linux/{code,code-oss}-url-handler.desktop - desktop-file-edit --set-key MimeType --set-value x-scheme-handler/code-oss resources/linux/code-oss-url-handler.desktop - - # Add completitions for code-oss - cp resources/completions/bash/code resources/completions/bash/code-oss - cp resources/completions/zsh/_code resources/completions/zsh/_code-oss - - # Patch completitions with correct names - sed -i 's|@@APPNAME@@|code|g' resources/completions/{bash/code,zsh/_code} - sed -i 's|@@APPNAME@@|code-oss|g' resources/completions/{bash/code-oss,zsh/_code-oss} - - patch -p1 -i "$srcdir/clipath.patch" -} - -build() { - cd $pkgname - yarn install --arch=$_vscode_arch - gulp --max_old_space_size=8192 \ - --openssl-legacy-provider \ - vscode-linux-$_vscode_arch-min -} - -package() { - # Install resource files - install -dm 755 "$pkgdir"/usr/lib/$pkgname - cp -r --no-preserve=ownership --preserve=mode VSCode-linux-$_vscode_arch/resources/app/* "$pkgdir"/usr/lib/$pkgname/ - - # Replace statically included binary with system copy - ln -sf /usr/bin/rg "$pkgdir"/usr/lib/code/node_modules.asar.unpacked/@vscode/ripgrep/bin/rg - - # Install binary - install -Dm 755 code.sh "$pkgdir"/usr/bin/code-oss - install -Dm 755 code.js "$pkgdir"/usr/lib/$pkgname/code.js - ln -sf code-oss "$pkgdir"/usr/bin/code - - # Install appdata and desktop file - install -Dm 644 $pkgname/resources/linux/code.appdata.xml "$pkgdir"/usr/share/metainfo/code-oss.appdata.xml - install -Dm 644 $pkgname/resources/linux/code.desktop "$pkgdir"/usr/share/applications/code-oss.desktop - install -Dm 644 $pkgname/resources/linux/code-url-handler.desktop "$pkgdir"/usr/share/applications/code-url-handler.desktop - install -Dm 644 $pkgname/resources/linux/code-oss-url-handler.desktop "$pkgdir"/usr/share/applications/code-oss-url-handler.desktop - install -Dm 644 VSCode-linux-$_vscode_arch/resources/app/resources/linux/code.png "$pkgdir"/usr/share/pixmaps/com.visualstudio.code.oss.png - - # Install bash and zsh completions - install -Dm 644 $pkgname/resources/completions/bash/code "$pkgdir"/usr/share/bash-completion/completions/code - install -Dm 644 $pkgname/resources/completions/bash/code-oss "$pkgdir"/usr/share/bash-completion/completions/code-oss - install -Dm 644 $pkgname/resources/completions/zsh/_code "$pkgdir"/usr/share/zsh/site-functions/_code - install -Dm 644 $pkgname/resources/completions/zsh/_code-oss "$pkgdir"/usr/share/zsh/site-functions/_code-oss - - # Install license files - install -Dm 644 VSCode-linux-$_vscode_arch/resources/app/LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE - install -Dm 644 VSCode-linux-$_vscode_arch/resources/app/ThirdPartyNotices.txt "$pkgdir"/usr/share/licenses/$pkgname/ThirdPartyNotices.txt -} Copied: code/repos/community-x86_64/PKGBUILD (from rev 1458856, code/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2023-05-05 08:55:26 UTC (rev 1458857) @@ -0,0 +1,137 @@ +# Maintainer: Filipe Laíns (FFY00) <la...@archlinux.org> +# Contributor: Michael Hansen <zrax0111 gmail com> +# Contributor: Francisco Magalhães <franmagneto gmail com> + +pkgname=code +pkgdesc='The Open Source build of Visual Studio Code (vscode) editor' +# Important: Remember to check https://github.com/microsoft/vscode/wiki/How-to-Contribute#prerequisites for target node version +# Important: Remember to check https://github.com/microsoft/vscode/blob/master/.yarnrc (choose correct tag) for target electron version +_electron=electron22 +pkgver=1.78.0 +pkgrel=1 +arch=('x86_64') +url='https://github.com/microsoft/vscode' +license=('MIT') +depends=($_electron 'libsecret' 'libx11' 'libxkbfile' 'ripgrep') +optdepends=('bash-completion: Bash completions' + 'zsh-completions: ZSH completitons' + 'x11-ssh-askpass: SSH authentication') +makedepends=('git' 'gulp' 'npm' 'python' 'yarn' 'nodejs-lts-gallium' 'desktop-file-utils') +provides=('vscode') +source=("$pkgname::git+$url.git#tag=$pkgver" + 'code.js' + 'code.sh' + 'product_json.diff' + 'clipath.patch') +sha512sums=('SKIP' + '6e8ee1df4dd982434a8295ca99e786a536457c86c34212546e548b115081798c5492a79f99cd5a3f1fa30fb71d29983aaabc2c79f4895d4a709d8354e9e2eade' + 'f949779dde4e3fe72f8a62db20edffc3e093c7209981e089f91e7d369274639a66b8cbf95cbdea4f3ea36e219d91e0abadb30f9c8e19e37d6077f9545e55a9a0' + 'b1aa0d7c5b3e3e8ba1172822d75ea38e90efc431b270e0b4ca9e45bf9c0be0f60922c8618969ef071b5b6dbd9ac9f030294f1bf49bcc28c187b46d113dca63a7' + '53c68ed0a4bffa4b19e5ca3de8322870611bca790db84ad60033f1a6ca79d2d95ddd00cfceec2ff4e922240537b5d002c6385e083cf1d0e69df867b5e1d8e197') + +# Even though we don't officially support other archs, let's +# allow the user to use this PKGBUILD to compile the package +# for his architecture +case "$CARCH" in + i686) + _vscode_arch=ia32 + ;; + x86_64) + _vscode_arch=x64 + ;; + armv7h) + _vscode_arch=arm + ;; + *) + # Needed for mksrcinfo + _vscode_arch=DUMMY + ;; +esac + +prepare() { + cd $pkgname + + # Change electron binary name to the target electron + sed -e "s|name=electron|name=$_electron |" \ + -e '/PKGBUILD/d' \ + -i ../code.sh + sed "1s|.*|#!/usr/lib/$_electron/electron|" -i ../code.js + + # This patch no longer contains proprietary modifications. + # See https://github.com/Microsoft/vscode/issues/31168 for details. + patch -p0 < ../product_json.diff + + # Set the commit and build date + local _commit=$(git rev-parse HEAD) + local _datestamp=$(date -u -Is | sed 's/\+00:00/Z/') + sed -e "s/@COMMIT@/$_commit/" -e "s/@DATE@/$_datestamp/" -i product.json + + # Build native modules for system electron + local _target=$(</usr/lib/$_electron/version) + sed -i "s/^target .*/target \"${_target//v/}\"/" .yarnrc + + # Patch appdata and desktop file + sed -i 's|/usr/share/@@NAME@@/@@NAME@@|@@NAME@@|g + s|@@NAME_SHORT@@|Code|g + s|@@NAME_LONG@@|Code - OSS|g + s|@@NAME@@|code-oss|g + s|@@ICON@@|com.visualstudio.code.oss|g + s|@@EXEC@@|/usr/bin/code-oss|g + s|@@LICENSE@@|MIT|g + s|@@URLPROTOCOL@@|vscode|g + s|inode/directory;||' resources/linux/code{.appdata.xml,.desktop,-url-handler.desktop} + + desktop-file-edit --set-key StartupWMClass --set-value code-oss resources/linux/code.desktop + + cp resources/linux/{code,code-oss}-url-handler.desktop + desktop-file-edit --set-key MimeType --set-value x-scheme-handler/code-oss resources/linux/code-oss-url-handler.desktop + + # Add completitions for code-oss + cp resources/completions/bash/code resources/completions/bash/code-oss + cp resources/completions/zsh/_code resources/completions/zsh/_code-oss + + # Patch completitions with correct names + sed -i 's|@@APPNAME@@|code|g' resources/completions/{bash/code,zsh/_code} + sed -i 's|@@APPNAME@@|code-oss|g' resources/completions/{bash/code-oss,zsh/_code-oss} + + patch -p1 -i "$srcdir/clipath.patch" +} + +build() { + cd $pkgname + yarn install --arch=$_vscode_arch + gulp --max_old_space_size=8192 \ + --openssl-legacy-provider \ + vscode-linux-$_vscode_arch-min +} + +package() { + # Install resource files + install -dm 755 "$pkgdir"/usr/lib/$pkgname + cp -r --no-preserve=ownership --preserve=mode VSCode-linux-$_vscode_arch/resources/app/* "$pkgdir"/usr/lib/$pkgname/ + + # Replace statically included binary with system copy + ln -sf /usr/bin/rg "$pkgdir"/usr/lib/code/node_modules.asar.unpacked/@vscode/ripgrep/bin/rg + + # Install binary + install -Dm 755 code.sh "$pkgdir"/usr/bin/code-oss + install -Dm 755 code.js "$pkgdir"/usr/lib/$pkgname/code.js + ln -sf code-oss "$pkgdir"/usr/bin/code + + # Install appdata and desktop file + install -Dm 644 $pkgname/resources/linux/code.appdata.xml "$pkgdir"/usr/share/metainfo/code-oss.appdata.xml + install -Dm 644 $pkgname/resources/linux/code.desktop "$pkgdir"/usr/share/applications/code-oss.desktop + install -Dm 644 $pkgname/resources/linux/code-url-handler.desktop "$pkgdir"/usr/share/applications/code-url-handler.desktop + install -Dm 644 $pkgname/resources/linux/code-oss-url-handler.desktop "$pkgdir"/usr/share/applications/code-oss-url-handler.desktop + install -Dm 644 VSCode-linux-$_vscode_arch/resources/app/resources/linux/code.png "$pkgdir"/usr/share/pixmaps/com.visualstudio.code.oss.png + + # Install bash and zsh completions + install -Dm 644 $pkgname/resources/completions/bash/code "$pkgdir"/usr/share/bash-completion/completions/code + install -Dm 644 $pkgname/resources/completions/bash/code-oss "$pkgdir"/usr/share/bash-completion/completions/code-oss + install -Dm 644 $pkgname/resources/completions/zsh/_code "$pkgdir"/usr/share/zsh/site-functions/_code + install -Dm 644 $pkgname/resources/completions/zsh/_code-oss "$pkgdir"/usr/share/zsh/site-functions/_code-oss + + # Install license files + install -Dm 644 VSCode-linux-$_vscode_arch/resources/app/LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + install -Dm 644 VSCode-linux-$_vscode_arch/resources/app/ThirdPartyNotices.txt "$pkgdir"/usr/share/licenses/$pkgname/ThirdPartyNotices.txt +} Deleted: clipath.patch =================================================================== --- clipath.patch 2023-05-05 08:55:02 UTC (rev 1458856) +++ clipath.patch 2023-05-05 08:55:26 UTC (rev 1458857) @@ -1,59 +0,0 @@ -diff --git a/src/vs/code/node/cli.ts b/src/vs/code/node/cli.ts -index 01f5c343bc6..acbc1789314 100644 ---- a/src/vs/code/node/cli.ts -+++ b/src/vs/code/node/cli.ts -@@ -44,7 +44,7 @@ export async function main(argv: string[]): Promise<any> { - let args: NativeParsedArgs; - - try { -- args = parseCLIProcessArgv(argv); -+ args = parseCLIProcessArgv(argv.slice(Math.max(0, argv.findIndex(a => a.endsWith('/code.js')) - 1))); - } catch (err) { - console.error(err.message); - return; -diff --git a/src/vs/platform/native/electron-main/nativeHostMainService.ts b/src/vs/platform/native/electron-main/nativeHostMainService.ts -index c0f093010fc..9569dba5570 100644 ---- a/src/vs/platform/native/electron-main/nativeHostMainService.ts -+++ b/src/vs/platform/native/electron-main/nativeHostMainService.ts -@@ -12,7 +12,7 @@ import { Emitter, Event } from 'vs/base/common/event'; - import { Disposable } from 'vs/base/common/lifecycle'; - import { Schemas } from 'vs/base/common/network'; - import { dirname, join, resolve } from 'vs/base/common/path'; --import { isLinux, isLinuxSnap, isMacintosh, isWindows } from 'vs/base/common/platform'; -+import { isLinuxSnap, isMacintosh, isWindows } from 'vs/base/common/platform'; - import { AddFirstParameterToFunctions } from 'vs/base/common/types'; - import { URI } from 'vs/base/common/uri'; - import { realpath } from 'vs/base/node/extpath'; -@@ -527,31 +527,7 @@ export class NativeHostMainService extends Disposable implements INativeHostMain - - @memoize - private get cliPath(): string { -- -- // Windows -- if (isWindows) { -- if (this.environmentMainService.isBuilt) { -- return join(dirname(process.execPath), 'bin', `${this.productService.applicationName}.cmd`); -- } -- -- return join(this.environmentMainService.appRoot, 'scripts', 'code-cli.bat'); -- } -- -- // Linux -- if (isLinux) { -- if (this.environmentMainService.isBuilt) { -- return join(dirname(process.execPath), 'bin', `${this.productService.applicationName}`); -- } -- -- return join(this.environmentMainService.appRoot, 'scripts', 'code-cli.sh'); -- } -- -- // macOS -- if (this.environmentMainService.isBuilt) { -- return join(this.environmentMainService.appRoot, 'bin', 'code'); -- } -- -- return join(this.environmentMainService.appRoot, 'scripts', 'code-cli.sh'); -+ return '/usr/bin/code'; - } - - async getOSStatistics(): Promise<IOSStatistics> { Copied: code/repos/community-x86_64/clipath.patch (from rev 1458856, code/trunk/clipath.patch) =================================================================== --- clipath.patch (rev 0) +++ clipath.patch 2023-05-05 08:55:26 UTC (rev 1458857) @@ -0,0 +1,59 @@ +diff --git a/src/vs/code/node/cli.ts b/src/vs/code/node/cli.ts +index 01f5c343bc6..acbc1789314 100644 +--- a/src/vs/code/node/cli.ts ++++ b/src/vs/code/node/cli.ts +@@ -44,7 +44,7 @@ export async function main(argv: string[]): Promise<any> { + let args: NativeParsedArgs; + + try { +- args = parseCLIProcessArgv(argv); ++ args = parseCLIProcessArgv(argv.slice(Math.max(0, argv.findIndex(a => a.endsWith('/code.js')) - 1))); + } catch (err) { + console.error(err.message); + return; +diff --git a/src/vs/platform/native/electron-main/nativeHostMainService.ts b/src/vs/platform/native/electron-main/nativeHostMainService.ts +index c0f093010fc..9569dba5570 100644 +--- a/src/vs/platform/native/electron-main/nativeHostMainService.ts ++++ b/src/vs/platform/native/electron-main/nativeHostMainService.ts +@@ -12,7 +12,7 @@ import { Emitter, Event } from 'vs/base/common/event'; + import { Disposable } from 'vs/base/common/lifecycle'; + import { Schemas } from 'vs/base/common/network'; + import { dirname, join, resolve } from 'vs/base/common/path'; +-import { isLinux, isLinuxSnap, isMacintosh, isWindows } from 'vs/base/common/platform'; ++import { isLinuxSnap, isMacintosh, isWindows } from 'vs/base/common/platform'; + import { AddFirstParameterToFunctions } from 'vs/base/common/types'; + import { URI } from 'vs/base/common/uri'; + import { realpath } from 'vs/base/node/extpath'; +@@ -527,31 +527,7 @@ export class NativeHostMainService extends Disposable implements INativeHostMain + + @memoize + private get cliPath(): string { +- +- // Windows +- if (isWindows) { +- if (this.environmentMainService.isBuilt) { +- return join(dirname(process.execPath), 'bin', `${this.productService.applicationName}.cmd`); +- } +- +- return join(this.environmentMainService.appRoot, 'scripts', 'code-cli.bat'); +- } +- +- // Linux +- if (isLinux) { +- if (this.environmentMainService.isBuilt) { +- return join(dirname(process.execPath), 'bin', `${this.productService.applicationName}`); +- } +- +- return join(this.environmentMainService.appRoot, 'scripts', 'code-cli.sh'); +- } +- +- // macOS +- if (this.environmentMainService.isBuilt) { +- return join(this.environmentMainService.appRoot, 'bin', 'code'); +- } +- +- return join(this.environmentMainService.appRoot, 'scripts', 'code-cli.sh'); ++ return '/usr/bin/code'; + } + + async getOSStatistics(): Promise<IOSStatistics> { Deleted: code.js =================================================================== --- code.js 2023-05-05 08:55:02 UTC (rev 1458856) +++ code.js 2023-05-05 08:55:26 UTC (rev 1458857) @@ -1,30 +0,0 @@ -#!/usr/bin/electron -// don't edit the electron binary name here! simply change the variable in the PKGBUILD and we will sed it into the correct one :) - -const name = 'code-oss'; - -const app = require('electron').app; -const path = require('path'); -const fs = require("fs"); - -// Change command name. -const fd = fs.openSync("/proc/self/comm", fs.constants.O_WRONLY); -fs.writeSync(fd, name); -fs.closeSync(fd); - -// Remove first command line argument (/usr/lib/code/code.js). - We call the CLI file first -process.argv.splice(0, 1); - -// Set application paths. -const appPath = __dirname; -const packageJson = require(path.join(appPath, 'package.json')); -app.setAppPath(appPath); -app.setDesktopName(name + '.desktop'); -app.setName(name); -app.setPath('userCache', path.join(app.getPath('cache'), name)); -app.setPath('userData', path.join(app.getPath('appData'), name)); -app.setVersion(packageJson.version); - -// Run the application. -require('module')._load(appPath, module, true); - Copied: code/repos/community-x86_64/code.js (from rev 1458856, code/trunk/code.js) =================================================================== --- code.js (rev 0) +++ code.js 2023-05-05 08:55:26 UTC (rev 1458857) @@ -0,0 +1,30 @@ +#!/usr/bin/electron +// don't edit the electron binary name here! simply change the variable in the PKGBUILD and we will sed it into the correct one :) + +const name = 'code-oss'; + +const app = require('electron').app; +const path = require('path'); +const fs = require("fs"); + +// Change command name. +const fd = fs.openSync("/proc/self/comm", fs.constants.O_WRONLY); +fs.writeSync(fd, name); +fs.closeSync(fd); + +// Remove first command line argument (/usr/lib/code/code.js). - We call the CLI file first +process.argv.splice(0, 1); + +// Set application paths. +const appPath = __dirname; +const packageJson = require(path.join(appPath, 'package.json')); +app.setAppPath(appPath); +app.setDesktopName(name + '.desktop'); +app.setName(name); +app.setPath('userCache', path.join(app.getPath('cache'), name)); +app.setPath('userData', path.join(app.getPath('appData'), name)); +app.setVersion(packageJson.version); + +// Run the application. +require('module')._load(appPath, module, true); + Deleted: code.sh =================================================================== --- code.sh 2023-05-05 08:55:02 UTC (rev 1458856) +++ code.sh 2023-05-05 08:55:26 UTC (rev 1458857) @@ -1,35 +0,0 @@ -#!/bin/bash - -set -euo pipefail - -flags_file="${XDG_CONFIG_HOME:-$HOME/.config}/code-flags.conf" - -declare -a codeflags - -if [[ -f "${flags_file}" ]]; then - mapfile -t < "${flags_file}" -fi - -for line in "${MAPFILE[@]}"; do - if [[ ! "${line}" =~ ^[[:space:]]*#.* ]]; then - codeflags+=("${line}") - fi -done - -# don't edit the electron binary name here! simply change the variable in the PKGBUILD and we will sed it into the correct one :) -name=electron -flags_file="${XDG_CONFIG_HOME:-$HOME/.config}/${name}-flags.conf" - -declare -a electronflags - -if [[ -f "${flags_file}" ]]; then - mapfile -t < "${flags_file}" -fi - -for line in "${MAPFILE[@]}"; do - if [[ ! "${line}" =~ ^[[:space:]]*#.* ]]; then - electronflags+=("${line}") - fi -done - -ELECTRON_RUN_AS_NODE=1 exec /usr/lib/${name}/electron /usr/lib/code/out/cli.js /usr/lib/code/code.js "${electronflags[@]}" "${codeflags[@]}" "$@" Copied: code/repos/community-x86_64/code.sh (from rev 1458856, code/trunk/code.sh) =================================================================== --- code.sh (rev 0) +++ code.sh 2023-05-05 08:55:26 UTC (rev 1458857) @@ -0,0 +1,35 @@ +#!/bin/bash + +set -euo pipefail + +flags_file="${XDG_CONFIG_HOME:-$HOME/.config}/code-flags.conf" + +declare -a codeflags + +if [[ -f "${flags_file}" ]]; then + mapfile -t < "${flags_file}" +fi + +for line in "${MAPFILE[@]}"; do + if [[ ! "${line}" =~ ^[[:space:]]*#.* ]]; then + codeflags+=("${line}") + fi +done + +# don't edit the electron binary name here! simply change the variable in the PKGBUILD and we will sed it into the correct one :) +name=electron +flags_file="${XDG_CONFIG_HOME:-$HOME/.config}/${name}-flags.conf" + +declare -a electronflags + +if [[ -f "${flags_file}" ]]; then + mapfile -t < "${flags_file}" +fi + +for line in "${MAPFILE[@]}"; do + if [[ ! "${line}" =~ ^[[:space:]]*#.* ]]; then + electronflags+=("${line}") + fi +done + +ELECTRON_RUN_AS_NODE=1 exec /usr/lib/${name}/electron /usr/lib/code/out/cli.js /usr/lib/code/code.js "${electronflags[@]}" "${codeflags[@]}" "$@" Deleted: product_json.diff =================================================================== --- product_json.diff 2023-05-05 08:55:02 UTC (rev 1458856) +++ product_json.diff 2023-05-05 08:55:26 UTC (rev 1458857) @@ -1,22 +0,0 @@ ---- product.json 2019-04-06 13:26:49.879655883 +0100 -+++ product.json 2019-04-06 13:26:37.399656243 +0100 -@@ -1,4 +1,19 @@ - { -+ "quality": "stable", -+ "extensionsGallery": { -+ "serviceUrl": "https://open-vsx.org/vscode/gallery", -+ "itemUrl": "https://open-vsx.org/vscode/item" -+ }, -+ "linkProtectionTrustedDomains": [ -+ "https://open-vsx.org" -+ ], -+ "documentationUrl": "https://code.visualstudio.com/docs", -+ "requestFeatureUrl": "https://github.com/Microsoft/vscode/issues", -+ "introductoryVideosUrl": "https://go.microsoft.com/fwlink/?linkid=832146", -+ "tipsAndTricksUrl": "https://go.microsoft.com/fwlink/?linkid=852118", -+ "keyboardShortcutsUrlLinux": "https://go.microsoft.com/fwlink/?linkid=832144", -+ "commit": "@COMMIT@", -+ "date": "@DATE@", - "nameShort": "Code - OSS", - "nameLong": "Code - OSS", - "applicationName": "code-oss", Copied: code/repos/community-x86_64/product_json.diff (from rev 1458856, code/trunk/product_json.diff) =================================================================== --- product_json.diff (rev 0) +++ product_json.diff 2023-05-05 08:55:26 UTC (rev 1458857) @@ -0,0 +1,22 @@ +--- product.json 2019-04-06 13:26:49.879655883 +0100 ++++ product.json 2019-04-06 13:26:37.399656243 +0100 +@@ -1,4 +1,19 @@ + { ++ "quality": "stable", ++ "extensionsGallery": { ++ "serviceUrl": "https://open-vsx.org/vscode/gallery", ++ "itemUrl": "https://open-vsx.org/vscode/item" ++ }, ++ "linkProtectionTrustedDomains": [ ++ "https://open-vsx.org" ++ ], ++ "documentationUrl": "https://code.visualstudio.com/docs", ++ "requestFeatureUrl": "https://github.com/Microsoft/vscode/issues", ++ "introductoryVideosUrl": "https://go.microsoft.com/fwlink/?linkid=832146", ++ "tipsAndTricksUrl": "https://go.microsoft.com/fwlink/?linkid=852118", ++ "keyboardShortcutsUrlLinux": "https://go.microsoft.com/fwlink/?linkid=832144", ++ "commit": "@COMMIT@", ++ "date": "@DATE@", + "nameShort": "Code - OSS", + "nameLong": "Code - OSS", + "applicationName": "code-oss",