This commit is contained in:
Cris Stringfellow 2022-01-05 17:29:01 +08:00
parent 5a169cded4
commit 2d0675f8bf
3 changed files with 12 additions and 18 deletions

View File

@ -1,11 +1,12 @@
{
"name": "diskernet",
"version": "2.6.0",
"name": "archivist1",
"version": "2.4.11",
"type": "module",
"description": "Library server and an archivist browser controller.",
"main": "build/22120.js",
"module": "src/app.js",
"main": "src/app.js",
"module": "dist/22120-module.js",
"bin": {
"diskernet": "build/22120.js"
"archivist1": "build/22120.js"
},
"scripts": {
"bundle": "npx rollup --config",
@ -26,12 +27,6 @@
"url": "git+https://github.com/dosyago/22120.git"
},
"pkg": {
"patches": {
"./node_modules/fetch-blob/streams.cjs": [
"Object.assign(globalThis, require('node:stream/web'))",
"Object.assign(globalThis, require('stream').web)"
]
},
"scripts": "build/*.js",
"assets": "public/**/*",
"outputPath": "bin"
@ -67,7 +62,6 @@
"nodemon": "latest",
"npx": "^3.0.0",
"webpack": "latest",
"webpack-cli": "latest",
"rollup-plugin-terser": "^7.0.2"
"webpack-cli": "latest"
}
}

View File

@ -4,8 +4,8 @@
description=$1
latest_tag=$(git describe --abbrev=0)
npm version $latest_tag
echo $(date) > .date.npm.release
gpush patch "$description"
#echo $(date) > .date.npm.release
#gpush patch "$description"
grel release -u i5ik -r 22120 --tag $latest_tag --name "New release" --description '"'"$description"'"'
grel upload -u i5ik -r 22120 --tag $latest_tag --name "archivist1-win.exe" --file bin/archivist1-win.exe
grel upload -u i5ik -r 22120 --tag $latest_tag --name "archivist1-linux" --file bin/archivist1-linux

View File

@ -1,5 +1,5 @@
import path from 'path';
//import {fileURLToPath} from 'url';
import {fileURLToPath} from 'url';
export const DEBUG = process.env.DEBUG_22120 || false;
export const SHOW_FETCH = false;
@ -40,8 +40,8 @@ export const SNIP_CONTEXT = 31;
export const NO_SANDBOX = process.env.DEBUG_22120 || false;
//export const APP_ROOT = '.';
export const APP_ROOT = __dirname;
//export const APP_ROOT = path.dirname(fileURLToPath(import.meta.url));
//export const APP_ROOT = __dirname;
export const APP_ROOT = path.dirname(fileURLToPath(import.meta.url));
export const sleep = ms => new Promise(res => setTimeout(res, ms));