This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e8a30ab
Showing
7 changed files
with
970 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
This is a recipe to build [Visual Studio Code](https://github.com/Microsoft/vscode) on Flathub | ||
|
||
Builtin extensions `ms-vscode.node-debug` and `ms-vscode.node-debug2` are not included due to bugs, may be fixed later. Please download them manually in the marketplace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
export PATH=$PATH:~/.bin | ||
mv gulp-electron-cache /tmp/ | ||
mv .electron .bin ~/ | ||
chmod u+x ~/.bin/yarn.js | ||
ln -s yarn.js ~/.bin/yarn | ||
yarn config set yarn-offline-mirror "$(realpath ./yarn-mirror)" | ||
tar -xzvf yarn-mirror/vscode-ripgrep-0.7.1-patch.0.1.tgz | ||
mv package vscode-ripgrep-0.7.1-patch.0.1 | ||
pushd vscode-ripgrep-0.7.1-patch.0.1 | ||
mv _node_modules node_modules | ||
yarn link | ||
echo > dist/postinstall.js | ||
mkdir bin | ||
unzip ../misc/ripgrep-0.7.1-patch.1-linux-x64.zip rg -d bin/ | ||
popd | ||
tar -xzvf yarn-mirror/vscode-1.0.1.tgz | ||
mv package vscode-1.0.1 | ||
pushd vscode-1.0.1 | ||
yarn link | ||
echo > bin/install | ||
cp ../vscode/src/vs/vscode.d.ts . | ||
popd | ||
pushd vscode | ||
echo '[]' > build/builtInExtensions.json | ||
yarn link vscode-ripgrep | ||
pushd extensions | ||
rm -r vscode-api-tests vscode-colorize-tests | ||
pushd emmet | ||
yarn link vscode | ||
popd | ||
popd | ||
sed -i "s/'vscode\-api\-tests',//" build/gulpfile.vscode.js | ||
sed -i "s/'vscode\-colorize\-tests',//" build/gulpfile.vscode.js | ||
sed -i "s/'vscode\-api\-tests',//" build/npm/postinstall.js | ||
sed -i "s/'vscode\-colorize\-tests',//" build/npm/postinstall.js | ||
npm_config_tarball="$(realpath ../misc/iojs-v1.7.9.tar.gz)" yarn install --offline --verbose --frozen-lockfile | ||
rm node_modules/vscode-ripgrep | ||
cp -r ../vscode-ripgrep-0.7.1-patch.0.1 node_modules/vscode-ripgrep | ||
echo "/// <reference types='@types/node'/>" > extensions/emmet/src/typings/refs.d.ts | ||
node_modules/.bin/gulp vscode-linux-x64-min --max_old_space_size=4096 | ||
popd | ||
mv VSCode-linux-x64 /app/ | ||
ln -s ../VSCode-linux-x64/code-oss /app/bin/code-oss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<component type="desktop"> | ||
<id>com.visualstudio.code-oss.desktop</id> | ||
<metadata_license>GFDL-1.3</metadata_license> | ||
<project_license>MIT</project_license> | ||
<name>Visual Studio Code (OSS)</name> | ||
<url type="homepage">https://github.com/Microsoft/vscode</url> | ||
<summary>Visual Studio Code (OSS). Code editing. Redefined.</summary> | ||
<description> | ||
<p>Visual Studio Code is a new choice of tool that combines the simplicity of a code editor with what developers need for the core edit-build-debug cycle. This is the open source build.</p> | ||
</description> | ||
<screenshots> | ||
<screenshot type="default"> | ||
<image>https://code.visualstudio.com/home/home-screenshot-linux-lg.png</image> | ||
<caption>Editing TypeScript and searching for extensions</caption> | ||
</screenshot> | ||
</screenshots> | ||
<categories> | ||
<category>Development</category> | ||
<category>IDE</category> | ||
<category>Utility</category> | ||
<category>TextEditor</category> | ||
</categories> | ||
<releases> | ||
<release version="1.20.1" date="2018-02-16"/> | ||
</releases> | ||
<content_rating type="oars-1.0"> | ||
<content_attribute id="violence-cartoon">none</content_attribute> | ||
<content_attribute id="violence-fantasy">none</content_attribute> | ||
<content_attribute id="violence-realistic">none</content_attribute> | ||
<content_attribute id="violence-bloodshed">none</content_attribute> | ||
<content_attribute id="violence-sexual">none</content_attribute> | ||
<content_attribute id="drugs-alcohol">none</content_attribute> | ||
<content_attribute id="drugs-narcotics">none</content_attribute> | ||
<content_attribute id="drugs-tobacco">none</content_attribute> | ||
<content_attribute id="sex-nudity">none</content_attribute> | ||
<content_attribute id="sex-themes">none</content_attribute> | ||
<content_attribute id="language-profanity">none</content_attribute> | ||
<content_attribute id="language-humor">none</content_attribute> | ||
<content_attribute id="language-discrimination">none</content_attribute> | ||
<content_attribute id="social-chat">none</content_attribute> | ||
<content_attribute id="social-info">none</content_attribute> | ||
<content_attribute id="social-audio">none</content_attribute> | ||
<content_attribute id="social-location">none</content_attribute> | ||
<content_attribute id="social-contacts">none</content_attribute> | ||
<content_attribute id="money-purchasing">none</content_attribute> | ||
<content_attribute id="money-gambling">none</content_attribute> | ||
</content_rating> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[Desktop Entry] | ||
Encoding=UTF-8 | ||
Version=1.20.1 | ||
Name=Microsoft Code (Open Source) | ||
Comment=Code Editing. Redefined. | ||
GenericName=Text Editor | ||
Exec=code-oss %F | ||
Icon=com.visualstudio.code-oss | ||
Type=Application | ||
StartupNotify=true | ||
StartupWMClass=Code - OSS | ||
Categories=Utility;TextEditor;Development;IDE; | ||
MimeType=text/plain;inode/directory; | ||
Actions=new-window; | ||
Keywords=vscode; | ||
|
||
[Desktop Action new-window] | ||
Name=New Window | ||
Name[de]=Neues Fenster | ||
Name[es]=Nueva ventana | ||
Name[fr]=Nouvelle fenêtre | ||
Name[it]=Nuova finestra | ||
Name[ja]=新規ウインドウ | ||
Name[ko]=새 창 | ||
Name[ru]=Новое окно | ||
Name[zh_CN]=新建窗口 | ||
Name[zh_TW]=開新視窗 | ||
Exec=code-oss --new-window %F | ||
Icon=com.visualstudio.code-oss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,180 @@ | ||
{ | ||
"app-id": "com.visualstudio.code-oss", | ||
"branch": "stable", | ||
"runtime": "org.gnome.Platform", | ||
"runtime-version": "3.26", | ||
"sdk": "org.gnome.Sdk", | ||
"command": "code-oss", | ||
"separate-locales": false, | ||
"finish-args": [ | ||
"--share=ipc", | ||
"--socket=x11", | ||
"--socket=pulseaudio", | ||
"--share=network", | ||
"--device=dri", | ||
"--filesystem=home", | ||
"--talk-name=org.freedesktop.Notifications" | ||
], | ||
"modules": [ | ||
{ | ||
"name": "libsecret", | ||
"config-opts": [ | ||
"--disable-manpages", | ||
"--disable-gtk-doc", | ||
"--disable-static", | ||
"--disable-introspection" | ||
], | ||
"cleanup": [ | ||
"/bin", | ||
"/include", | ||
"/lib/pkgconfig", | ||
"/share/gtk-doc", | ||
"*.la" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "git", | ||
"url": "https://github.com/GNOME/libsecret.git", | ||
"tag": "0.18.5", | ||
"commit": "0c468b56b074d8b8cf29e58f3c488f12161a3969" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "libxkbfile", | ||
"cleanup": [ | ||
"/include", | ||
"/lib/*.la", | ||
"/lib/pkgconfig" | ||
], | ||
"config-opts": [ | ||
"--disable-static" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "git", | ||
"url": "https://github.com/freedesktop/libxkbfile.git", | ||
"tag": "libxkbfile-1.0.9", | ||
"commit": "de4f2307448583988a55a587cb6a3f43e4868378" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "nodejs", | ||
"cleanup": [ | ||
"/include", | ||
"/share", | ||
"/app/lib/node_modules/npm/changelogs", | ||
"/app/lib/node_modules/npm/doc", | ||
"/app/lib/node_modules/npm/html", | ||
"/app/lib/node_modules/npm/man", | ||
"/app/lib/node_modules/npm/scripts" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "git", | ||
"url": "https://github.com/nodejs/node.git", | ||
"tag": "v8.9.4", | ||
"commit": "d6bf5d166a81a50b4e895c59d4299443f33c3a76" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "vscode", | ||
"buildsystem": "simple", | ||
"build-commands": [ | ||
"bash build.sh", | ||
"install -Dm644 Visual_Studio_Code_1.18_icon.svg /usr/share/icons/hicolor/scalable/apps/com.visualstudio.code-oss.svg", | ||
"install -Dm644 com.visualstudio.code-oss.appdata.xml /app/share/appdata/com.visualstudio.code-oss.appdata.xml", | ||
"install -Dm644 com.visualstudio.code-oss.desktop /app/share/applications/com.visualstudio.code-oss.desktop" | ||
], | ||
"cleanup": [], | ||
"sources": [ | ||
{ | ||
"type": "file", | ||
"url": "https://github.com/yarnpkg/yarn/releases/download/v1.3.2/yarn-1.3.2.js", | ||
"sha512": "f2d0a882f03b4f6ec7562558dca92a8120a921ca23b55f2aee576c3440fb7cdef9fd77672394888fcf1e9cd49c46a3d1d652b63c770976aad8cd388cc2a66459", | ||
"dest": ".bin", | ||
"dest-filename": "yarn.js" | ||
}, | ||
{ | ||
"type": "file", | ||
"url": "https://atom.io/download/electron/v1.7.9/iojs-v1.7.9.tar.gz", | ||
"sha512": "527d00969e2b88cb0c8fbf74c293fb65065d5a7a1139672c53340765ca83692c0a61e604ec3de74667ebde556378ba854e3230565883b0efb503d066c3dff851", | ||
"dest": "misc" | ||
}, | ||
{ | ||
"type": "file", | ||
"url": "https://github.com/electron/electron/releases/download/v1.7.0/mksnapshot-v1.7.0-linux-x64.zip", | ||
"sha512": "c23659fd89a6186dbe56733535f36e7fa0376d7066ef0ce2843307331a0a743c014a96212492967fb7a9b089b3aad4d0bef6a21666dcf768a7e5ff394eab2b17", | ||
"dest": ".electron" | ||
}, | ||
{ | ||
"type": "file", | ||
"url": "https://github.com/electron/electron/releases/download/v1.7.0/chromedriver-v1.7.0-linux-x64.zip", | ||
"sha512": "c2158bbd0c2ed28ad85cae9d400bd6416f0e4aa411e70287ccfaa4ad61b60692b17e0c6452a064ad55a396a5ad9e0253c5b3a0d75b91182995ab9fa25764d736", | ||
"dest": ".electron" | ||
}, | ||
{ | ||
"type": "file", | ||
"path": "SHASUMS256.txt-1.7.0", | ||
"dest": ".electron" | ||
}, | ||
{ | ||
"type": "file", | ||
"url": "https://github.com/electron/electron/releases/download/v1.7.7/electron-v1.7.7-linux-x64.zip", | ||
"sha512": "1c78c031442cddedab0923d474ccb4e12a21f3189b0f091db3df1a9c851f765a468e96bf4ee7cee2354af1237e5e26f12febd0c72945821f0c4e137733f86089", | ||
"dest": ".electron" | ||
}, | ||
{ | ||
"type": "file", | ||
"path": "SHASUMS256.txt-1.7.7", | ||
"dest": ".electron" | ||
}, | ||
{ | ||
"type": "file", | ||
"url": "https://github.com/electron/electron/releases/download/v1.7.9/electron-v1.7.9-linux-x64.zip", | ||
"sha512": "55c7c81f25632e95a1411da8465281d576da609c830e4126f2326ee272b89b8107d0e043ba334261fff6de66347ec3e570d5530f7ce85a348962d18e84843b98", | ||
"dest": "gulp-electron-cache/atom/electron" | ||
}, | ||
{ | ||
"type": "file", | ||
"url": "https://github.com/electron/electron/releases/download/v1.7.9/ffmpeg-v1.7.9-linux-x64.zip", | ||
"sha512": "5af1e2fcda46dc142f27252724041f295e16acf0884bacf8b8e8f5cb43d9c337f577eb0cce477830cc1c838ae6a4bb03ae8ac5eec4eba3505a9b741cea5feb7f", | ||
"dest": "gulp-electron-cache/atom/electron" | ||
}, | ||
{ | ||
"type": "file", | ||
"url": "https://github.com/roblourens/ripgrep/releases/download/0.7.1-patch.1/ripgrep-0.7.1-patch.1-linux-x64.zip", | ||
"sha512": "9ce9aac7198d2999c0c3ee9678c595139c6020c3529ac145502e1b44147694885dc6256aaad590c6a5cb349f751d8cad15e71bc6819619efc209758087dd024e", | ||
"dest": "misc" | ||
}, | ||
"generated-sources.json", | ||
{ | ||
"type": "git", | ||
"url": "https://github.com/Microsoft/vscode.git", | ||
"tag": "1.20.1", | ||
"commit": "f88bbf9137d24d36d968ea6b2911786bfe103002", | ||
"dest": "vscode" | ||
}, | ||
{ | ||
"type": "file", | ||
"url": "https://upload.wikimedia.org/wikipedia/commons/2/2d/Visual_Studio_Code_1.18_icon.svg", | ||
"sha512": "cbd4785fa3c7110bdd3ac189c66bdba9f7bc1488e08f16c417e7f68a0781f2af5406056b1e5b3d2ddf29d57c3da99495108da0da6fc2546f705c27b08b66239e" | ||
}, | ||
{ | ||
"type": "file", | ||
"path": "com.visualstudio.code-oss.appdata.xml" | ||
}, | ||
{ | ||
"type": "file", | ||
"path": "com.visualstudio.code-oss.desktop" | ||
}, | ||
{ | ||
"type": "file", | ||
"path": "build.sh" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"only-arches": [ | ||
"x86_64" | ||
] | ||
} |