Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
fd77ea1e
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
fd77ea1e
编写于
3月 25, 2019
作者:
J
João Moreno
提交者:
GitHub
3月 25, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #70884 from Wimpressive-Snaps/snapcraft-update
Snapcraft update. Fixes #63194 Fixes #57019
上级
f35466ac
24e592c5
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
65 addition
and
17 deletion
+65
-17
resources/linux/snap/electron-launch
resources/linux/snap/electron-launch
+30
-2
resources/linux/snap/snapcraft.yaml
resources/linux/snap/snapcraft.yaml
+35
-15
未找到文件。
resources/linux/snap/electron-launch
浏览文件 @
fd77ea1e
#!/
bin/
sh
#!/
usr/bin/env ba
sh
# Create $XDG_RUNTIME_DIR if it doesn't exist
# On Fedora $SNAP is under /var and there is some magic to map it to /snap.
# We need to handle that case and reset $SNAP
SNAP
=
$(
echo
$SNAP
|
sed
-e
"s|/var/lib/snapd||g"
)
if
[
"
$SNAP_ARCH
"
==
"amd64"
]
;
then
ARCH
=
"x86_64-linux-gnu"
elif
[
"
$SNAP_ARCH
"
==
"armhf"
]
;
then
ARCH
=
"arm-linux-gnueabihf"
elif
[
"
$SNAP_ARCH
"
==
"arm64"
]
;
then
ARCH
=
"aarch64-linux-gnu"
else
ARCH
=
"
$SNAP_ARCH
-linux-gnu"
fi
export
XDG_CACHE_HOME
=
$SNAP_USER_COMMON
/.cache
if
[[
-d
$SNAP_USER_DATA
/.cache
&&
!
-e
$XDG_CACHE_HOME
]]
;
then
# the .cache directory used to be stored under $SNAP_USER_DATA, migrate it
mv
$SNAP_USER_DATA
/.cache
$SNAP_USER_COMMON
/
fi
mkdir
-p
$XDG_CACHE_HOME
# Gdk-pixbuf loaders
export
GDK_PIXBUF_MODULE_FILE
=
$XDG_CACHE_HOME
/gdk-pixbuf-loaders.cache
export
GDK_PIXBUF_MODULEDIR
=
$SNAP
/usr/lib/
$ARCH
/gdk-pixbuf-2.0/2.10.0/loaders
if
[
-f
$SNAP
/usr/lib/
$ARCH
/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders
]
;
then
$SNAP
/usr/lib/
$ARCH
/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders
>
$GDK_PIXBUF_MODULE_FILE
fi
# Create $XDG_RUNTIME_DIR if not exists (to be removed when https://pad.lv/1656340 is fixed)
[
-n
"
$XDG_RUNTIME_DIR
"
]
&&
mkdir
-p
$XDG_RUNTIME_DIR
-m
700
exec
"
$@
"
resources/linux/snap/snapcraft.yaml
浏览文件 @
fd77ea1e
...
...
@@ -10,34 +10,54 @@ grade: stable
confinement
:
classic
parts
:
gnome
:
plugin
:
nil
build-packages
:
-
software-properties-common
override-pull
:
|
add-apt-repository -y ppa:ubuntu-desktop/gnome-3-26
apt -y update
code
:
after
:
-
gnome
plugin
:
dump
source
:
.
stage-packages
:
-
fcitx-frontend-gtk3
-
gvfs-libs
-
libasound2
-
libc++1
-
libgconf-2-4
-
libglib2.0-bin
-
libgnome-keyring0
-
libgtk-3-0
-
libnotify4
-
libnspr4
-
libnss3
-
libpcre3
-
libpulse0
-
libsecret-1-0
-
libxss1
-
libxtst6
-
libxkbcommon0
-
libgtk-3-0
-
libgdk-pixbuf2.0-0
-
libglib2.0-bin
-
unity-gtk2-module
-
libappindicator1
-
xdg-user-dirs
-
libsecret-1-0
# TODO@joao @Tyriar check these deps
# - libatomic1
# - libgtk2.0-bin
-
zlib1g
prime
:
-
-usr/share/dh-python
-
-usr/share/doc
-
-usr/share/fonts
-
-usr/share/icons
-
-usr/share/lintian
-
-usr/share/man
apps
:
@@
NAME@@
:
command
:
electron-launch $
{SNAP}
/usr/share/@@NAME@@/bin/@@NAME@@
command
:
electron-launch $
SNAP
/usr/share/@@NAME@@/bin/@@NAME@@
desktop
:
usr/share/applications/@@NAME@@.desktop
environment
:
DISABLE_WAYLAND
:
1
GSETTINGS_SCHEMA_DIR
:
$SNAP/usr/share/glib-2.0/schemas
url-handler
:
command
:
electron-launch $SNAP/usr/share/@@NAME@@/bin/@@NAME@@ --open-url
desktop
:
usr/share/applications/@@NAME@@-url-handler.desktop
environment
:
DISABLE_WAYLAND
:
1
GSETTINGS_SCHEMA_DIR
:
$SNAP/usr/share/glib-2.0/schemas
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录