micropad: 3.30.6 -> 4.0.0

This commit is contained in:
Rhys Davies 2022-09-19 20:25:54 +12:00
parent 54f5655931
commit 4b048a08c3
No known key found for this signature in database
4 changed files with 734 additions and 726 deletions

View file

@ -14,18 +14,18 @@ let
in in
mkYarnPackage rec { mkYarnPackage rec {
pname = "micropad"; pname = "micropad";
version = "3.30.6"; version = "4.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "MicroPad"; owner = "MicroPad";
repo = "Micropad-Electron"; repo = "Micropad-Electron";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-v3hnHG6FMW2xBU/DnenqjFizQv/OZ9cW99n/3SoENe8="; sha256 = "sha256-slutuLH95wQaZK02vRU/WDbYgG0RZbNKvrihLVMZWpQ=";
}; };
micropad-core = fetchzip { micropad-core = fetchzip {
url = "https://github.com/MicroPad/MicroPad-Core/releases/download/v${version}/micropad.tar.xz"; url = "https://github.com/MicroPad/MicroPad-Core/releases/download/v${version}/micropad.tar.xz";
sha256 = "sha256-aqshYbVrQg6tYtTlO91FGiH7DuueOA0OU5KGCVc7XvI="; sha256 = "1w0ajx15rm2mmyy4518ai8xfkfd6dfm38i3vfr9q9bw9h6igfn6g";
}; };
packageJSON = ./package.json; packageJSON = ./package.json;

View file

@ -1,14 +1,15 @@
{ {
"name": "micropad", "name": "micropad",
"version": "3.30.5", "version": "4.0.0",
"description": "A powerful note-taking app that helps you organise + take notes without restrictions.", "description": "A powerful note-taking app that helps you organise + take notes without restrictions.",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
"start": "yarn build && yarn electron . --is-dev --no-sandbox", "start": "yarn build && yarn electron . --is-dev --no-sandbox",
"build": "yarn tsc -p tsconfig.json", "build": "yarn tsc -p tsconfig.json",
"update-core": "rm -rf core && rm -rf tmp && mkdir tmp && wget https://github.com/MicroPad/MicroPad-Core/releases/download/v${npm_package_version}/micropad.tar.xz -P ./tmp && cd tmp && tar -xf micropad.tar.xz && rm build/*.map && rm build/static/*/*.map && cp -r build ../core && cd .. && rm -rf tmp", "update-core": "rm -rf core && rm -rf tmp && mkdir tmp && wget https://github.com/MicroPad/MicroPad-Core/releases/download/v${npm_package_version}/micropad.tar.xz -P ./tmp && cd tmp && tar -xf micropad.tar.xz && rm build/dist/*.map && cp -r build ../core && cd .. && rm -rf tmp",
"pack": "yarn build && yarn electron-builder --dir", "pack": "yarn build && yarn electron-builder --dir",
"dist": "yarn build && yarn electron-builder" "dist": "yarn build && yarn electron-builder",
"windows:version": "echo %npm_package_version%"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -24,14 +25,16 @@
}, },
"homepage": "https://getmicropad.com", "homepage": "https://getmicropad.com",
"devDependencies": { "devDependencies": {
"electron": "^17.1.0", "@types/node": "^18.7.18",
"electron-builder": "^23.0.2", "electron": "^20.1.4",
"typescript": "~4.5.4" "electron-builder": "^23.3.3",
"typescript": "~4.8.3"
}, },
"dependencies": { "dependencies": {
"dictionary-en": "^3.0.0", "dictionary-en": "^3.0.0",
"dictionary-en-au": "^2.1.1", "dictionary-en-au": "^2.1.1",
"electron-context-menu": "^3.1.2", "electron-context-menu": "^3.1.2",
"electron-window-state": "^5.0.3",
"localforage": "^1.10.0", "localforage": "^1.10.0",
"typo-js": "^1.2.1" "typo-js": "^1.2.1"
}, },
@ -47,8 +50,22 @@
], ],
"linux": { "linux": {
"target": [ "target": [
"tar.gz", {
"AppImage", "target": "tar.gz",
"arch": [
"x64",
"armv7l",
"arm64"
]
},
{
"target": "AppImage",
"arch": [
"x64",
"armv7l",
"arm64"
]
},
"snap", "snap",
"deb", "deb",
"rpm", "rpm",
@ -79,9 +96,19 @@
}, },
"win": { "win": {
"target": [ "target": [
"nsis", {
"target": "nsis",
"arch": [
"x64",
"arm64"
]
},
"portable" "portable"
] ]
},
"nsis": {
"allowToChangeInstallationDirectory": true,
"oneClick": false
} }
} }
} }

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff