diff --git a/.gitignore b/.gitignore index d85a1c2..b0a54b9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules dist/ -.env \ No newline at end of file +.env +.DS_Store \ No newline at end of file diff --git a/build/icon.icns b/build/icon.icns new file mode 100644 index 0000000..17f6af2 Binary files /dev/null and b/build/icon.icns differ diff --git a/old_package_json_app_store_friendly b/old_package_json_app_store_friendly new file mode 100644 index 0000000..6617aa9 --- /dev/null +++ b/old_package_json_app_store_friendly @@ -0,0 +1,121 @@ +{ + "name": "ove-electron", + "version": "1.4.3", + "description": "An open source vector or plasmid editor", + "main": "main.js", + "scripts": { + "start": "electron . ./pA11990.gb", + "test": "mocha", + "build": "env-cmd electron-builder -wml --publish never", + "build-win": "env-cmd electron-builder --win --publish never", + "build-mac": "env-cmd electron-builder --mac --publish never", + "deploy": "env-cmd electron-builder --mac --linux --publish always", + "deploy-win": "electron-builder --win --publish always", + "deploy-mac": "env-cmd electron-builder --mac --publish always", + "deploy-linux": "env-cmd electron-builder --linux --publish always", + "generateChangelog": "auto-changelog -p && git add . && git commit -m 'Updating CHANGELOG' && git push" + }, + "build": { + "appx": { + "identityName": "56560Teselagen.OpenVectorEditor", + "publisher": "CN=D373F92F-3481-433F-9DC5-0BE55DE5500D", + "publisherDisplayName": "Teselagen", + "applicationId": "OpenVectorEditor", + "displayName": "OpenVectorEditor" + }, + "win": { + "target": "appx" + }, + "productName": "OpenVectorEditor", + "publish": { + "provider": "github", + "repo": "ove-electron", + "owner": "tnrich" + }, + "afterSign": "src/misc/notarize.js", + "mac": { + "hardenedRuntime": true, + "gatekeeperAssess": false, + "target": { + "target": "default", + "arch": [ + "x64", + "arm64" + ] + }, + "entitlements": "src/misc/entitlements.mac.plist", + "entitlementsInherit": "src/misc/entitlements.mac.plist" + }, + "appId": "com.teselagen.openVectorEditor", + "fileAssociations": [ + { + "ext": "json" + }, + { + "ext": "gb" + }, + { + "ext": "dna" + }, + { + "ext": "gbk" + }, + { + "ext": "gp" + }, + { + "ext": "fas" + }, + { + "ext": "fasta" + }, + { + "ext": "fa" + }, + { + "ext": "fna" + }, + { + "ext": "ffn" + }, + { + "ext": "gff" + }, + { + "ext": "gff3" + } + ] + }, + "repository": "https://github.com/electron/ove-electron", + "keywords": [ + "Electron", + "open-vector-editor", + "plasmid", + "editor", + "dna", + "ove" + ], + "author": "tnrich", + "license": "MIT", + "devDependencies": { + "auto-changelog": "^2.4.0", + "electron": "^21.1.0", + "electron-builder": "^23.6.0", + "electron-notarize": "^1.2.1", + "env-cmd": "^10.1.0", + "eslint": "^8.24.0", + "eslint-config-teselagen": "^6.0.6", + "mocha": "^10.0.0", + "spectron": "^19.0.0" + }, + "dependencies": { + "bio-parsers": "^8.3.32", + "electron-updater": "^5.3.0", + "electron-window-state": "^5.0.3", + "open-vector-editor": "^18.1.37", + "ove-auto-annotate": "^0.0.5", + "querystring": "^0.2.1", + "ve-range-utils": "^2.6.6", + "ve-sequence-utils": "^5.1.38" + } +} diff --git a/package.json b/package.json index 6617aa9..bd9b04a 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,17 @@ { "name": "ove-electron", - "version": "1.4.3", + "version": "1.5.1", "description": "An open source vector or plasmid editor", "main": "main.js", + "author": "Thomas (tnrich) Willheim ", "scripts": { "start": "electron . ./pA11990.gb", "test": "mocha", "build": "env-cmd electron-builder -wml --publish never", "build-win": "env-cmd electron-builder --win --publish never", "build-mac": "env-cmd electron-builder --mac --publish never", - "deploy": "env-cmd electron-builder --mac --linux --publish always", + "build-linux": "env-cmd electron-builder --linux --publish never", + "deploy": "env-cmd electron-builder --mac --linux --win --publish always", "deploy-win": "electron-builder --win --publish always", "deploy-mac": "env-cmd electron-builder --mac --publish always", "deploy-linux": "env-cmd electron-builder --linux --publish always", @@ -24,7 +26,17 @@ "displayName": "OpenVectorEditor" }, "win": { - "target": "appx" + "target": "nsis" + }, + "linux": { + "target": { + "target": "deb", + "arch": [ + "x64", + "arm64" + ] + }, + "icon": "build/icon.icns" }, "productName": "OpenVectorEditor", "publish": { @@ -32,12 +44,12 @@ "repo": "ove-electron", "owner": "tnrich" }, - "afterSign": "src/misc/notarize.js", "mac": { + "identity": null, "hardenedRuntime": true, "gatekeeperAssess": false, "target": { - "target": "default", + "target": "dmg", "arch": [ "x64", "arm64" @@ -95,7 +107,6 @@ "dna", "ove" ], - "author": "tnrich", "license": "MIT", "devDependencies": { "auto-changelog": "^2.4.0", diff --git a/src/misc/entitlements.mac.plist b/src/misc/entitlements.mac.plist index bb87459..82acc26 100644 --- a/src/misc/entitlements.mac.plist +++ b/src/misc/entitlements.mac.plist @@ -4,5 +4,7 @@ com.apple.security.cs.allow-unsigned-executable-memory + com.apple.security.cs.allow-jit + \ No newline at end of file