diff --git a/bin/wechat-devtools b/bin/wechat-devtools index 7944a8d..7ab1911 100755 --- a/bin/wechat-devtools +++ b/bin/wechat-devtools @@ -23,7 +23,15 @@ APP_NAME=${APP_NAME//\",\"main/} export WECHAT_DEVTOOLS_DIR="$root_dir/nwjs" export APPDATA="$DATA_DIR/$APP_NAME" export PATH="$root_dir/node/bin:$root_dir/nwjs:$PATH" -export USERPROFILE=$DATA_DIR +export USERPROFILE=$APPDATA + +# SNAP +# if [ -n $SNAP ];then +# if [ ! -f $DATA_DIR/nacl_irt_x86_64.nexe ];then +# # 解压 +# tar -zxf $root_dir/nwjs/nacl_irt_x86_64.nexe.tar.gz -C $APPDATA/nacl_irt_x86_64.nexe +# fi +# fi clean_cache() { echo "清理缓存"; diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index e238009..f1bb480 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -118,7 +118,10 @@ parts: ls -l ls -l $SNAPCRAFT_PART_SRC ls -l $SNAPCRAFT_PART_BUILD - chmod 644 nacl_irt_x86_64.nexe + rm -rf nacl_irt_x86_64.nexe + # chmod 644 nacl_irt_x86_64.nexe + # tar -zcf nacl_irt_x86_64.nexe.tar.gz nacl_irt_x86_64.nexe + # ln -s $SNAP/nacl_irt_x86_64.nexe nacl_irt_x86_64.nexe ls -l ls -l $SNAPCRAFT_PART_SRC ls -l $SNAPCRAFT_PART_BUILD @@ -176,6 +179,7 @@ apps: - browser-support - home - system-observe + - block-devices plugs: gtk-3-themes: @@ -190,7 +194,3 @@ plugs: interface: content target: $SNAP/data-dir/sounds default-provider: gtk-common-themes - # platform_snap: - # interface: content - # target: $SNAP/gnome-platform - # default-provider: gnome-3-34-1804