From e4a7ca41619238c38a52bae33eab30eea4421fe0 Mon Sep 17 00:00:00 2001 From: "Tom A. Vibeto" Date: Mon, 11 Jun 2018 02:51:22 +0200 Subject: [PATCH] MMIP ini files don't support quotation marks --- build.js | 14 ++------------ package-lock.json | 20 +------------------- package.json | 2 -- source/Install.ini | 23 +++++++++++------------ 4 files changed, 14 insertions(+), 45 deletions(-) diff --git a/build.js b/build.js index e973064..4ba91c9 100644 --- a/build.js +++ b/build.js @@ -1,32 +1,22 @@ const ini = require('multi-ini'); const zipdir = require('zip-dir'); -const semver = require('semver'); -const packagejson = require('./package.json'); let fullverstring = ''; -const version = packagejson.version; const file = './source/Install.ini'; const content = ini.read(file); if ( content && content.Header && - content.Header.VersionBuild + content.Header.VersionMajor ) { const head = content.Header; - head.VersionMajor = `${semver(version).major}`; - head.VersionMinor = `${semver(version).minor}`; - head.VersionRelease = `${semver(version).patch}`; - head.VersionBuild = `${Number(head.VersionBuild) + 1}`; - fullverstring = [ head.VersionMajor, head.VersionMinor, - head.VersionRelease, - head.VersionBuild + head.VersionRelease ].join('.'); - ini.write(file, content); } zipdir('./source', { saveTo: `./dist/Lyrics To Instrumental v${fullverstring}.mmip` diff --git a/package-lock.json b/package-lock.json index 814f612..c169721 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "lyrics-to-instrumental", - "version": "2.3.4", + "version": "1.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -9,14 +9,6 @@ "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=" }, - "clean-stacktrace": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/clean-stacktrace/-/clean-stacktrace-1.1.0.tgz", - "integrity": "sha1-i4zch/ZA2qupxZWrbtuJe2OwzjM=", - "requires": { - "stack-utils-node-internals": "^1.0.1" - } - }, "jszip": { "version": "2.6.1", "resolved": "https://registry.npmjs.org/jszip/-/jszip-2.6.1.tgz", @@ -43,16 +35,6 @@ "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.6.tgz", "integrity": "sha512-lQe48YPsMJAig+yngZ87Lus+NF+3mtu7DVOBu6b/gHO1YpKwIj5AWjZ/TOS7i46HD/UixzWb1zeWDZfGZ3iYcg==" }, - "semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==" - }, - "stack-utils-node-internals": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/stack-utils-node-internals/-/stack-utils-node-internals-1.0.1.tgz", - "integrity": "sha1-q0qKRptsvscrC/tYnfXiix0SKB8=" - }, "zip-dir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/zip-dir/-/zip-dir-1.0.2.tgz", diff --git a/package.json b/package.json index 72f0f9e..d905230 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,7 @@ "author": "Tom A. Vibeto (https://onlyhuman.dk)", "license": "ISC", "dependencies": { - "clean-stacktrace": "^1.1.0", "multi-ini": "^2.0.0", - "semver": "^5.5.0", "zip-dir": "^1.0.2" } } diff --git a/source/Install.ini b/source/Install.ini index b566a01..d40a005 100644 --- a/source/Install.ini +++ b/source/Install.ini @@ -1,15 +1,14 @@ [Header] -ID="LyricsToInstrumental" -Title="Lyrics To Instrumental" -Description="Toolbar button to set lyrics to instrumental for the currently selected songs" -VersionMajor="1" -VersionMinor="0" -VersionRelease="0" -VersionBuild="1" -Type="script" +ID=LyricsToInstrumental +Title=Lyrics To Instrumental +Description=Toolbar button to set lyrics to instrumental for the currently selected songs +VersionMajor=1 +VersionMinor=0 +VersionRelease=0 +Type=script [Copy] -Src="LyricsToInstrumental.vbs" -Tgt="{app}\Scripts\Auto\LyricsToInstrumental.vbs" +Src=LyricsToInstrumental.vbs +Tgt={app}\Scripts\Auto\LyricsToInstrumental.vbs [Execute] -File="{app}\Scripts\Auto\LyricsToInstrumental.vbs" -Function="OnStartup()" +File={app}\Scripts\Auto\LyricsToInstrumental.vbs +Function=OnStartup()