From 36d12937597d44fbdddb22b796112738c271840a Mon Sep 17 00:00:00 2001 From: cutls Date: Tue, 13 Apr 2021 13:10:55 +0900 Subject: [PATCH] test --- app/gitHash.js | 6 +++++ app/package.json | 6 ++--- app/view/pl-PL/index.html | 2 +- app/view/pl-PL/setting.html | 4 +-- app/yarn.lock | 51 +++---------------------------------- trial.travis.yml | 34 ------------------------- 6 files changed, 14 insertions(+), 89 deletions(-) create mode 100644 app/gitHash.js delete mode 100644 trial.travis.yml diff --git a/app/gitHash.js b/app/gitHash.js new file mode 100644 index 00000000..9803cb9c --- /dev/null +++ b/app/gitHash.js @@ -0,0 +1,6 @@ +const fs = require('fs') +const execSync = require('child_process').execSync +const gitHash = execSync('git rev-parse HEAD') + .toString() + .trim() +fs.writeFileSync('git', gitHash) diff --git a/app/package.json b/app/package.json index 328eab3d..8cacb7a4 100644 --- a/app/package.json +++ b/app/package.json @@ -7,9 +7,8 @@ "main": "main.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "preinstall": "only-allow yarn", "postinstall": "run-s util:*", - "util:hash": "echo $(git rev-parse HEAD) > git", + "util:hash": "node gitHash.js", "util:browserify": "browserify aiscript.js -o js/platform/aiscript.js", "construct": "node view/make/makeCli.js", "construct:store": "node view/make/makeCli.js --store", @@ -61,7 +60,7 @@ "@fortawesome/fontawesome-free": "^5.15.2", "@syuilo/aiscript": "^0.11.1", "electron-dl": "^3.2.1", - "itunes-nowplaying-mac": "git://github.com/cutls/itunes-nowplaying-mac#48fb2970c57dca905a2669897cba82052a9f5a6a", + "itunes-nowplaying-mac": "git://github.com/cutls/itunes-nowplaying-mac#077a3c8fdac18d91048684698463f2478bd32683", "jimp": "^0.16.1", "jquery": "^3.6.0", "jquery-ui-dist": "^1.12.1", @@ -84,7 +83,6 @@ "electron-rebuild": "^2.3.5", "eslint": "^7.23.0", "npm-run-all": "^4.1.5", - "only-allow": "^1.0.0", "readline-sync": "1.4.10", "ts-node": "^9.1.1", "typescript": "^4.2.4" diff --git a/app/view/pl-PL/index.html b/app/view/pl-PL/index.html index 7e7a8448..f870f026 100644 --- a/app/view/pl-PL/index.html +++ b/app/view/pl-PL/index.html @@ -26,7 +26,7 @@