Skip to content

Commit

Permalink
Merge pull request #34 from unipept/feature/application-packaging
Browse files Browse the repository at this point in the history
Implement packaging of application
  • Loading branch information
pverscha authored Mar 5, 2020
2 parents 9bbdee2 + 49a278d commit 073f6db
Show file tree
Hide file tree
Showing 8 changed files with 197 additions and 86 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.env
.DS_Store
node_modules
/dist
Expand All @@ -22,4 +23,4 @@ yarn-error.log*

#Electron-builder output
/dist_electron
yarn.lock
yarn.lock
8 changes: 8 additions & 0 deletions build/entitlements.mac.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
</dict>
</plist>
Binary file added build/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
159 changes: 146 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name": "unipept-desktop",
"version": "0.1.0",
"private": true,
"author": "Unipept Team (Ghent University)",
"description": "A desktop equivalent of unipept.ugent.be. This app aims at high-throughput analysis of metaproteomics samples.",
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
Expand All @@ -22,6 +24,7 @@
"better-sqlite3": "^5.4.3",
"chokidar": "^3.3.1",
"core-js": "^2.6.9",
"electron-updater": "^2.2.4",
"jquery": "^3.4.1",
"regenerator-runtime": "^0.13.3",
"vue": "^2.6.10",
Expand All @@ -45,7 +48,9 @@
"babel-eslint": "^10.0.1",
"copy-webpack-plugin": "^5.0.4",
"css-loader": "^3.2.0",
"dotenv": "^8.2.0",
"electron": "^6.0.0",
"electron-notarize": "^0.2.1",
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0",
"less": "^3.10.3",
Expand Down
18 changes: 18 additions & 0 deletions scripts/notarize.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
require("dotenv").config();
const { notarize } = require("electron-notarize");

exports.default = async function notarizing(context) {
const { electronPlatformName, appOutDir } = context;
if (electronPlatformName !== "darwin") {
return;
}

const appName = context.packager.appInfo.productFilename;

return await notarize({
appBundleId: "be.ugent.unipept.desktop",
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLEID,
appleIdPassword: process.env.APPLEIDPASS,
});
};
Loading

0 comments on commit 073f6db

Please sign in to comment.