feat: correct script location

copy from https://github.com/tiddly-gittly/TidGi-Desktop/pull/283/files

Co-Authored-By: oeyoews <jyao4783@gmail.com>
This commit is contained in:
lin onetwo 2022-11-18 01:35:54 +08:00
parent aad40c427e
commit 1c297bd5eb
2 changed files with 3 additions and 3 deletions

4
.gitignore vendored
View file

@ -65,5 +65,5 @@ out/
settings-dev/
.dccache
.cache/
.deb2appimage_cache/
deb2appimage*.json
deb2appimage_cache/
deb2appimage.json

View file

@ -9,7 +9,7 @@
const appimage_cachedir = 'deb2appimage_cache';
const appimage_address = 'https://github.com/simoniz0r/deb2appimage/releases/download/v0.0.5/deb2appimage-0.0.5-x86_64.AppImage';
const bin = `${appimage_cachedir}/deb2appimage.appimage`;
const config_file = 'scripts/deb2appimage.json';
const config_file = path.join(__dirname, 'deb2appimage.json');
// this filename for deb2appimage not support Underline char
// maybe need delete ~/.cache/deb2appimage/
const updated_config_file = `deb2appimage_${String(new Date())}.json`;