Browse Source

build adjustment

tags/v0.17.0
Sasha Aliashkevich 2 years ago
parent
commit
346119fe8a
3 changed files with 7 additions and 9 deletions
  1. +3
    -7
      README.md
  2. +3
    -1
      package.json
  3. +1
    -1
      win_build.sh

+ 3
- 7
README.md View File

@@ -24,19 +24,15 @@ In order to run SQL Tabs from source code follow the next steps:

1. Install [npm](https://www.npmjs.com) - a javascript package manager

2. Install [electron](http://electron.atom.io) - a runtime environment for application (version is important):

npm install electron-prebuilt@1.4.7 -g

3. Get the code, install dependencies and build the application:
2. Get the code, install dependencies and build the application:

git clone https://github.com/sasha-alias/sqltabs
cd sqltabs
npm install

4. Run the application:
3. Run the application:

electron .
npm start


Contribution and issues reports are very appreciated.

+ 3
- 1
package.json View File

@@ -39,10 +39,12 @@
"babel-cli": "^6.23.0",
"babel-plugin-transform-react-jsx": "^6.23.0",
"electron-packager": "^8.5.1",
"electron-prebuilt": "^1.4.7",
"uglifyjs": "^2.4.10"
},
"scripts": {
"postinstall": "rm -r node_modules/c3/node_modules; babel --plugins transform-react-jsx --out-dir=build src/",
"build-watch": "babel --plugins transform-react-jsx --out-dir=build src/ --watch"
"build-watch": "babel --plugins transform-react-jsx --out-dir=build src/ --watch",
"start": "electron ./"
}
}

+ 1
- 1
win_build.sh View File

@@ -13,7 +13,7 @@ cp -r css .build/
cp -r node_modules .build/

cd .build
electron-packager ./ "sqltabs" --platform=win32 --arch=x64 --electron-version=1.4.7 --icon logo.ico --asar --prune
electron-packager ./ "sqltabs" --platform=win32 --arch=x64 --version=1.4.7 --icon logo.ico --asar --prune
rm sqltabs-win32-x64/LICENSE*
rm sqltabs-win32-x64/version
cd ..

Loading…
Cancel
Save