Skip to content
Snippets Groups Projects
Commit 6139e701 authored by Lorenzo Tilve's avatar Lorenzo Tilve
Browse files

Fix install paths and add arch support

parent d7f85331
No related branches found
No related tags found
No related merge requests found
......@@ -52,14 +52,33 @@
"build-options": {
"build-args": [
"--share=network"
]
],
"arch": {
"x86_64": {
"env": {
"FLATPAK_ARCH": "x86_64",
"VSCODE_ARCH": "x64"
}
},
"i386": {
"env": {
"FLATPAK_ARCH": "i386",
"VSCODE_ARCH": "ia32"
}
},
"arm" : {
"env": {
"FLATPAK_ARCH": "arm",
"VSCODE_ARCH": "arm"
}
}
}
},
"sources": [
{
"type": "git",
"url": "https://github.com/Microsoft/vscode",
"branch": "release/1.10",
"dest": "app"
"branch": "release/1.10"
},
{
"type": "file",
......
all:
set -x
# Install dependencies
cd app && ./scripts/npm.sh install && ./scripts/npm.sh install gm
./scripts/npm.sh install
./scripts/npm.sh install gm
# build vscode
cd app && ./node_modules/.bin/gulp "vscode-linux-ia32-prepare-flatpak" --max_old_space_size=4096;
./node_modules/.bin/gulp vscode-linux-${VSCODE_ARCH}-prepare-flatpak --max_old_space_size=4096
install:
# Install Icons, appdata.xml and .desktop file
mkdir -p /export/share/
cp -r app/.build/linux/flatpak/i386/share/icons /export/
cp -r app/.build/linux/flatpak/i386/share/appdata /export/
cp -r app/.build/linux/flatpak/i386/share/applications /export/
# Make binary available
mkdir -p /app/bin
cp -r app/.build/linux/flatpak/i386/share/code-oss/bin/* /app/bin
# Add code-oss contents to the bundle
cp -a app/.build/linux/flatpak/i386/share/code-oss /app
cp -ar .build/linux/flatpak/${FLATPAK_ARCH}/* /app/
ln -sf /app/share/code-oss/bin/code-oss /app/bin/code-oss
.PHONY: all install
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment