Skip to content

Instantly share code, notes, and snippets.

@ted-piotrowski
Last active August 31, 2022 14:27
Show Gist options
  • Save ted-piotrowski/e5c223a6a2f6f3079cb38c959ceecaa6 to your computer and use it in GitHub Desktop.
Save ted-piotrowski/e5c223a6a2f6f3079cb38c959ceecaa6 to your computer and use it in GitHub Desktop.
Visual Studio Code on ARM Debian Linux
# building Visual Studio Code Debian package on ARM
# get source code
git clone [email protected]:Microsoft/vscode.git
cd vscode
# build debian package
./scripts/npm.sh install --arch=armhf
./node_modules/.bin/gulp vscode-linux-arm-build-deb
# locate built package, install and run
find . -name *.deb #this will give location of built package
sudo dpkg install [location-from-previous-step]
code-oss # to run the installed program
@incyi
Copy link

incyi commented Oct 9, 2016

I'll get this error

./node_modules/.bin/gulp vscode-linux-arm-build-deb
module.js:457
throw err;
^

Error: Cannot find module 'gulp-watch'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (/home/pi/Development/vscode/build/lib/watch/index.js:22:4)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)

using:
node -v v6.7.0
npm -v 3.10.3

@Shiba-Kar
Copy link

npm WARN deprecated [email protected]: use uuid module instead
is it ok

@Shiba-Kar
Copy link

Giving warnigs after warnings....in raspberry pi 3

@Shiba-Kar
Copy link

npm WARN deprecated [email protected]: use uuid module instead
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
[ ...........] \ fetchMetadata: verb cache add spec optionator@^0.5.0

@princevince
Copy link

princevince commented Nov 4, 2017

Thank you for the clear instructions.

  • Build succeeded
  • Package installed successfully with dpkg
  • Menu item is created
  • Binaries nowhere to be found

What am I missing here, besides the binaries?

@princevince
Copy link

[14:37:02] Using gulpfile ~/Code/vscode/gulpfile.js
[14:37:02] Starting 'clean-vscode-linux-arm-deb'...
[14:37:03] Finished 'clean-vscode-linux-arm-deb' after 30 ms
[14:37:03] Starting 'vscode-linux-arm-prepare-deb'...
[14:37:03] Finished 'vscode-linux-arm-prepare-deb' after 144 ms
[14:37:03] Starting 'vscode-linux-arm-build-deb'...
dpkg-deb: building package 'code-oss' in 'deb/code-oss_1.19.0-1509802622_armhf.deb'.
dpkg-scanpackages: warning: Packages in archive but missing from override file:
dpkg-scanpackages: warning: code-oss
dpkg-scanpackages: info: Wrote 1 entries to output Packages file.
[14:37:04] Finished 'vscode-linux-arm-build-deb' after 1.07 s

@AndyHolo
Copy link

AndyHolo commented Nov 9, 2017

i got this npm error :Failed to find Electron v1.7.0 for linux-armhf at https://github.com/electron/electron/releases/download/v1.7.0/chromedriver-v1.7.0-linux-armhf.zip

I looked at github.com/electron/electron/releases/ and there is no package for armhf at all. So how could you finish compiling the VScode?? thx

@Bazmundi
Copy link

Bazmundi commented Oct 7, 2018

When running "./scripts/npm.sh install --arch=armhf" I get "no command yarn"

When I try running yarn from shell I get recommendation to run "apt install cmdtest".

I install cmdtext and when I run "./scripts/npm.sh install --arch=armhf" I now get "yarn does not recognise --arch"

I am running ARMBIAN 5.59 stable Ubuntu 18.04.1 LTS 4.14.65-sunxi on orange pi zero.

@hartraft
Copy link

@fifn2
Copy link

fifn2 commented May 31, 2019

Is this the same as vscode? Will it get updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment