This commit is contained in:
msojocs 2022-04-20 20:08:28 +08:00
parent 0453c1eda1
commit e978ebcf9f
2 changed files with 14 additions and 6 deletions

View File

@ -23,7 +23,15 @@ APP_NAME=${APP_NAME//\",\"main/}
export WECHAT_DEVTOOLS_DIR="$root_dir/nwjs" export WECHAT_DEVTOOLS_DIR="$root_dir/nwjs"
export APPDATA="$DATA_DIR/$APP_NAME" export APPDATA="$DATA_DIR/$APP_NAME"
export PATH="$root_dir/node/bin:$root_dir/nwjs:$PATH" 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() { clean_cache() {
echo "清理缓存"; echo "清理缓存";

View File

@ -118,7 +118,10 @@ parts:
ls -l ls -l
ls -l $SNAPCRAFT_PART_SRC ls -l $SNAPCRAFT_PART_SRC
ls -l $SNAPCRAFT_PART_BUILD 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
ls -l $SNAPCRAFT_PART_SRC ls -l $SNAPCRAFT_PART_SRC
ls -l $SNAPCRAFT_PART_BUILD ls -l $SNAPCRAFT_PART_BUILD
@ -176,6 +179,7 @@ apps:
- browser-support - browser-support
- home - home
- system-observe - system-observe
- block-devices
plugs: plugs:
gtk-3-themes: gtk-3-themes:
@ -190,7 +194,3 @@ plugs:
interface: content interface: content
target: $SNAP/data-dir/sounds target: $SNAP/data-dir/sounds
default-provider: gtk-common-themes default-provider: gtk-common-themes
# platform_snap:
# interface: content
# target: $SNAP/gnome-platform
# default-provider: gnome-3-34-1804