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

Inital commit

parents
No related branches found
No related tags found
No related merge requests found
# vscode-flatpak
Flatpak of [Visual Studio Code](https://code.visualstudio.com/).
build.sh 0 → 100755
#!/bin/bash
set -e
if [[ ! -d repo ]]
then
ostree init --mode=archive-z2 --repo=repo
fi
flatpak-builder \
--force-clean \
--ccache \
--require-changes \
--repo=repo \
--arch=$(flatpak --default-arch) \
--subject="build of com.visualstudio.Vscode, $(date)" \
build \
com.visualstudio.Vscode.json
{
"app-id": "com.visualstudio.Vscode",
"base": "io.atom.electron.BaseApp",
"base-version": "master",
"runtime": "org.freedesktop.Platform",
"runtime-version": "1.4",
"sdk": "org.freedesktop.Sdk",
"command": "vscode",
"finish-args": [
"--device=dri",
"--filesystem=home",
"--share=ipc",
"--share=network",
"--socket=pulseaudio",
"--socket=x11"
],
"modules": [
{
"name": "nodejs",
"sources": [
{
"type": "archive",
"url": "https://nodejs.org/dist/v6.10.0/node-v6.10.0.tar.gz",
"path": "node-v6.10.0.tar.gz",
"sha256": "01dae00dc0faa37a4b7a84098e2f04631827fc42e319eb66ccc3ab1d561ea42d"
}
]
},
{
"name": "vscode",
"build-options": {
"build-args": [
"--share=network"
]
},
"sources": [
{
"type": "git",
"url": "https://github.com/Microsoft/vscode",
"branch": "release/1.10",
"dest": "app"
},
{
"type": "file",
"path": "vscode/Makefile"
},
{
"type": "file",
"path": "common/configure"
}
]
},
{
"name": "resources",
"sources": [
{
"type": "file",
"path": "common/configure"
},
{
"type": "file",
"path": "resources/Makefile"
},
{
"type": "file",
"path": "resources/install"
},
{
"type": "file",
"path": "resources/com.visualstudio.Vscode.png"
},
{
"type": "file",
"path": "resources/com.visualstudio.Vscode.desktop"
},
{
"type": "file",
"path": "resources/com.visualstudio.Vscode.appdata.xml"
}
]
}
]
}
#!/usr/bin/bash
set -e
take_next=0
for opt in "${@}"
do
if [[ ${opt} == --prefix ]]
then
take_next=1
elif [[ ${take_next} -eq 1 ]]
then
echo ${opt} >prefix
take_next=0
elif [[ ${opt} == --prefix=* ]]
then
echo "${opt#--prefix=}" >prefix
fi
done
if [[ ! -e prefix ]]
then
echo '/app' >prefix
fi
all:
install:
./install
.PHONY: all install
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>com.visualstudio.Vscode.desktop</id>
<name>Visual Studio Code</name>
<metadata_license>CC0-1.0</metadata_license>
<summary>Source Code Editor</summary>
<description>
<p>
Code editing.Redefined. Free. Open source. Runs everywhere.
</p>
</description>
<url type="homepage">https://code.visualstudio.com/</url>
<screenshots>
<screenshot type="default">
<image>https://code.visualstudio.com/home/home-screenshot-linux-lg.png</image>
</screenshot>
</screenshots>
<project_license>MIT</project_license>
<developer_name>Microsoft</developer_name>
<url type="bugtracker">https://github.com/Microsoft/vscode/issues</url>
<url type="help">https://stackoverflow.com/questions/tagged/vscode</url>
</component>
[Desktop Entry]
Type=Application
Name=Visual
GenericName=Source Code Editor
Comment=Code editing.Redefined. Free. Open source. Runs everywhere.
Exec=vscode
Icon=com.visualstudio.Vscode
Terminal=false
Categories=Development;IDE;
resources/com.visualstudio.Vscode.png

2.51 KiB

#!/usr/bin/bash
set -e
prefix=$(cat prefix)
install -D 'com.visualstudio.Vscode.desktop' "${prefix}/share/applications/com.visualstudio.Vscode.desktop"
install -D 'com.visualstudio.Vscode.png' "${prefix}/share/icons/hicolor/128x128/apps/com.visualstudio.Vscode.png"
install -D 'com.visualstudio.Vscode.appdata.xml' "${prefix}/share/appdata/com.visualstudio.Vscode.appdata.xml"
all:
set -x
# Install dependencies
cd app && ./scripts/npm.sh install
# build vscode
./node_modules/.bin/gulp "vscode-linux-ia32-prepare-flatpak"
install:
./install
.PHONY: all install
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment