reverted try to dbgate global package

This commit is contained in:
Jan Prochazka 2021-02-01 18:39:55 +01:00
parent fdf60b5267
commit df359aea58
3 changed files with 1 additions and 39 deletions

View File

@ -3,17 +3,10 @@
[![NPM version](https://img.shields.io/npm/v/dbgate.svg)](https://www.npmjs.com/package/dbgate)
# DbGate - database administration tool
DbGate is fast and easy to use database administration tool for MySQL, PostgreSQL, SQL Server.
## Install using npm
```sh
npm install -g dbgate
```
Then run <code>dbgate</code> from commandline.
You can also download binary packages from https://dbgate.org
Please download binary packages from https://dbgate.org . Or run from source code, as described on [github](https://github.com/dbgate/dbgate)
## Other dbgate packages
You can use some functionality of dbgate from your JavaScript code. See [dbgate-api](https://npmjs.com/dbgate-api) package.
@ -21,4 +14,3 @@ You can use some functionality of dbgate from your JavaScript code. See [dbgate-
## Screenshot
![Screenshot](https://raw.githubusercontent.com/dbshell/dbgate/master/screenshot.png)

View File

@ -1,7 +1,6 @@
{
"name": "dbgate",
"version": "3.9.4-beta.5",
"private": true,
"author": "Jan Prochazka <jenasoft.database@gmail.com>",
"description": "Opensource database administration tool",
"dependencies": {
@ -58,16 +57,12 @@
"scripts": {
"start": "cross-env ELECTRON_START_URL=http://localhost:5000 electron .",
"start:local": "cross-env electron .",
"start:dbgate": "dbgate",
"dist": "electron-builder",
"build": "cd ../packages/api && yarn build && cd ../web && yarn build:app && cd ../../app && yarn dist",
"build:local": "cd ../packages/api && yarn build && cd ../web && yarn build:app && cd ../../app && yarn predist",
"postinstall": "electron-builder install-app-deps",
"predist": "copyfiles ../packages/api/dist/* packages && copyfiles \"../packages/web/build/*\" packages && copyfiles \"../packages/web/build/**/*\" packages"
},
"bin": {
"dbgate": "./src/dbgate"
},
"main": "src/electron.js",
"devDependencies": {
"copyfiles": "^2.2.0",

View File

@ -1,25 +0,0 @@
#!/usr/bin/env node
var electron = require('electron');
var proc = require('child_process');
var child = proc.spawn(electron, ['.'], { stdio: 'inherit', windowsHide: false });
child.on('close', function (code, signal) {
if (code === null) {
console.error(electron, 'exited with signal', signal);
process.exit(1);
}
process.exit(code);
});
const handleTerminationSignal = function (signal) {
process.on(signal, function signalHandler() {
if (!child.killed) {
child.kill(signal);
}
});
};
handleTerminationSignal('SIGINT');
handleTerminationSignal('SIGTERM');