diff --git a/README.md b/README.md index b431da9..eccedaf 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # PostGIS Query Editor -A very accessible PostGIS query editor and visualizer. -Getting started with PostGIS is harder than it should be. We spent much time in **psql** and wished to visualize +A very accessible **PostGIS query editor** and visualizer. +Getting started with [PostGIS](http://postgis.net/) is harder than it should be. We spent much time in **psql** and wished to visualize our queries quickly without big complicated tools. -Features +**Features:** - Just type your query - we try to figure out the geometry/projection - Beautiful MapboxGL based visualization - Click on any feature for full information @@ -28,3 +28,9 @@ Run Electron app. ```bash npm start ``` + +Create releases. + +```bash +npm run package +``` diff --git a/main.js b/main.js index 665bc1f..81f1e73 100644 --- a/main.js +++ b/main.js @@ -27,9 +27,6 @@ app.on('ready', function() { // and load the index.html of the app. mainWindow.loadUrl('file://' + __dirname + '/index.html'); - // Open the DevTools. - mainWindow.webContents.openDevTools(); - // Emitted when the window is closed. mainWindow.on('closed', function() { // Dereference the window object, usually you would store windows diff --git a/package.json b/package.json index 9426407..744600f 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "watch-es6": "babel src -d dist --source-maps inline --watch", "build-es6": "babel src -d dist --source-maps inline", "watch-sass": "nodemon -e scss -x \"npm run build-sass\"", - "build-sass": "node-sass --include-path scss resources/scss/main.scss resources/css/main.css" + "build-sass": "node-sass --include-path scss resources/scss/main.scss resources/css/main.css", + "package": "electron-packager ./ postgis-editor --out=./releases --platform=all --arch=x64 --icon=./postgis-editor.icns --overwrite " }, "babel": { "presets": [ @@ -21,6 +22,7 @@ "babel-cli": "^6.7.5", "babel-preset-es2015": "^6.6.0", "babel-preset-react": "^6.5.0", + "electron-packager": "^6.0.2", "electron-prebuilt": "^0.34.3", "electron-rebuild": "^1.0.2", "node-sass": "^3.4.2" diff --git a/postgis-editor.icns b/postgis-editor.icns new file mode 100644 index 0000000..e05a317 Binary files /dev/null and b/postgis-editor.icns differ