You've already forked dev.commandline.waveterm
mirror of
https://github.com/wavetermdev/dev.commandline.waveterm.git
synced 2026-04-22 15:27:29 -07:00
825847abd1
Fixes #1
143 lines
5.0 KiB
JSON
143 lines
5.0 KiB
JSON
{
|
|
"app-id": "com.visualstudio.code",
|
|
"branch": "stable",
|
|
"base": "io.atom.electron.BaseApp",
|
|
"base-version": "stable",
|
|
"runtime": "org.freedesktop.Sdk",
|
|
"runtime-version": "1.6",
|
|
"sdk": "org.freedesktop.Sdk",
|
|
"command": "code",
|
|
"tags": ["proprietary"],
|
|
"separate-locales": false,
|
|
"finish-args": [
|
|
"--share=ipc", "--socket=x11",
|
|
"--socket=pulseaudio",
|
|
"--share=network",
|
|
"--device=dri",
|
|
"--filesystem=host",
|
|
"--talk-name=org.freedesktop.Notifications",
|
|
"--talk-name=org.freedesktop.secrets",
|
|
"--env=NPM_CONFIG_GLOBALCONFIG=/app/etc/npmrc",
|
|
"--extra-data=code.deb:cc81c53c4d06f2ca012a24f90ded33cf87e662a5b2ce3f336bcfc684b7e6e778:43487904::https://go.microsoft.com/fwlink/?LinkID=760868"
|
|
],
|
|
"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": "archive",
|
|
"url": "http://ftp.gnome.org/pub/GNOME/sources/libsecret/0.18/libsecret-0.18.5.tar.xz",
|
|
"sha256": "9ce7bd8dd5831f2786c935d82638ac428fa085057cc6780aba0e39375887ccb3"
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"commands": ["autoreconf -f"]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "xkbfile",
|
|
"cleanup": ["/include", "/lib/*.la", "/lib/pkgconfig"],
|
|
"config-opts": ["--disable-static"],
|
|
"sources": [
|
|
{
|
|
"type": "archive",
|
|
"url": "https://www.x.org/releases/individual/lib/libxkbfile-1.0.9.tar.bz2",
|
|
"sha256": "51817e0530961975d9513b773960b4edd275f7d5c72293d5a151ed4f42aeb16a"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "git",
|
|
"make-args": ["NO_PERL=1"],
|
|
"make-install-args": ["NO_PERL=1"],
|
|
"cleanup": ["/share/git-gui"],
|
|
"sources": [
|
|
{
|
|
"type": "archive",
|
|
"url": "https://www.kernel.org/pub/software/scm/git/git-2.15.0.tar.xz",
|
|
"sha256": "107116489f10b758b51af1c5dbdb9a274917b0fb67dc8eaefcdabc7bc3eb3e6a"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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": "archive",
|
|
"url": "https://nodejs.org/dist/v7.9.0/node-v7.9.0.tar.xz",
|
|
"sha256": "a569764b884929f31a0772600a5cf36048ad42aa8c54ba4cabea6c067ef96a29"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "vscode",
|
|
"buildsystem": "simple",
|
|
"build-commands": [
|
|
"install apply_extra /app/bin",
|
|
"install code.sh /app/bin/code",
|
|
"cp /usr/bin/ar /app/bin",
|
|
"install -Dm644 com.visualstudio.code.appdata.xml /app/share/appdata/com.visualstudio.code.appdata.xml",
|
|
"install -m644 npmrc /app/etc"
|
|
],
|
|
"cleanup": [
|
|
"/share/lintian",
|
|
"/share/pixmaps"
|
|
],
|
|
"sources": [
|
|
{
|
|
"type": "script",
|
|
"dest-filename": "apply_extra",
|
|
"commands": [
|
|
"ar x code.deb",
|
|
"rm -f code.deb",
|
|
"tar -xf data.tar.xz",
|
|
"rm -f control.tar.xz data.tar.xz debian-binary",
|
|
"mv usr/* .",
|
|
"rmdir usr",
|
|
"install -Dm644 share/pixmaps/code.png export/share/icons/hicolor/512x512/apps/com.visualstudio.code.png",
|
|
"install -Dm644 share/applications/code.desktop export/share/applications/com.visualstudio.code.desktop",
|
|
"desktop-file-edit --set-key=Exec --set-value='code %F' export/share/applications/com.visualstudio.code.desktop",
|
|
"desktop-file-edit --set-key=Icon --set-value='com.visualstudio.code' export/share/applications/com.visualstudio.code.desktop"
|
|
]
|
|
},
|
|
{
|
|
"type": "script",
|
|
"commands": ["exec env PATH=\"$PATH:$XDG_DATA_HOME/node_modules/bin\" /app/extra/share/code/bin/code --extensions-dir=$XDG_DATA_HOME/vscode/extensions"],
|
|
"dest-filename": "code.sh"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"path": "npmrc"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"path": "com.visualstudio.code.appdata.xml"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|