Skip to content

Commit

Permalink
Add build settings
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranahmedse committed Oct 27, 2018
1 parent cccd7be commit c7fe309
Show file tree
Hide file tree
Showing 6 changed files with 868 additions and 45 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
.idea
dist
32 changes: 25 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"name": "pennywise",
"description": "Pennywise – MacOS application that allows you to open URLs in a floating window that always stays on top.",
"productName": "Pennywise",
"author": "Kamran Ahmed",
"version": "0.1.0",
"private": true,
"private": false,
"main": "src/electron/index.js",
"homepage": "./",
"license": "MIT",
"dependencies": {
"bootstrap": "^4.1.3",
"font-awesome": "^4.7.0",
Expand All @@ -17,12 +21,12 @@
"react-scripts": "2.0.5"
},
"scripts": {
"react": "cross-env BROWSER=none react-scripts start",
"electron": "cross-env APP_URL=http://localhost:3000 electron .",
"start": "concurrently \"yarn react\" \"wait-on http://localhost:3000 && yarn electron\" ",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"_react": "cross-env BROWSER=none react-scripts start",
"_electron": "cross-env APP_URL=http://localhost:3000 electron .",
"_build": "react-scripts build",
"start": "concurrently \"yarn _react\" \"wait-on http://localhost:3000 && yarn _electron\" ",
"build": "yarn _build && build",
"icons": "electron-icon-maker -i public/pennywise.png -o public"
},
"eslintConfig": {
"extends": "react-app"
Expand All @@ -33,10 +37,24 @@
"not ie <= 11",
"not op_mini all"
],
"build": {
"extends": null,
"appId": "info.kamranahmed.pennywise",
"copyright": "Copyright © 2018 Kamran Ahmed",
"mac": {
"category": "public.app-category.productivity",
"target": "dmg",
"icon": "public/mac/icon.icns"
}
},
"devDependencies": {
"concurrently": "^4.0.1",
"cross-env": "^5.2.0",
"electron": "^3.0.6",
"electron-builder": "^20.28.4",
"electron-icon-maker": "^0.0.4",
"jquery": "^3.3.1",
"popper.js": "^1.14.4",
"wait-on": "^3.1.0"
}
}
Binary file added public/icon.icns
Binary file not shown.
Binary file added public/pennywise.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/electron/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function createWindow() {
const appUrl = process.env.APP_URL || url.format({
protocol: 'file',
slashes: true,
pathname: path.join(__dirname, 'index.html')
pathname: path.join(__dirname, '/../../build/index.html')
});

mainWindow.loadURL(appUrl);
Expand Down
Loading

0 comments on commit c7fe309

Please sign in to comment.