-
-
Save ted-piotrowski/e5c223a6a2f6f3079cb38c959ceecaa6 to your computer and use it in GitHub Desktop.
# 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 |
@ajstadlin I'm sorry to hear that. Let me try to help you. Can you tell me your NodeJS version? I used node 6.6 to compile this. I have seen comments that Node < 6.0 will likely not work.
If you need to update to Node 6+, follow this Gist:
https://gist.github.com/ted-piotrowski/33d7a23ce9f67231620d8edd825bf89e
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
npm WARN deprecated [email protected]: use uuid module instead
is it ok
Giving warnigs after warnings....in raspberry pi 3
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
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?
[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
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
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.
Is this the same as vscode? Will it get updates?
This did not work. The gulp command returns with