Skip to content

Commit

Permalink
Bump to 1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
youngtype committed Jan 15, 2022
1 parent 11df13a commit 3918679
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ build
dll
main.js
main.js.map
venv

.idea
npm-debug.log.*
Expand Down
81 changes: 75 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,80 @@
# Forcebuy Activator
# Package manager: yarn
# Scripts:
## Requirements

Install Windows SDK by installing [Visual Studio](https://visualstudio.microsoft.com/ru/downloads/) (requirement of node-gyp, select MS SDK and Classic Console CPP apps in Visual Studio Installer)
Install [Python](https://www.python.org/)
Install pyinstaller pip module globally:

```bash
pip install pyinstaller
```

Install virtualenv pip package globally:

```bash
pip install virtualenv
```

Create a Virtual Environment using “virtualenv” pip module wich was installed at previous step:

```bash
# write it in root dir
cd src/python
virtualenv venv
```

Activate Virtual Environment and install requirements:

```bash
# write it in src/python dir
source venv/Scripts/activate
pip install -r requirements.txt
```

Install node-gyp npm package globally:

```bash
npm i -g node-gyp
```

Install rimraf npm package globally:

```bash
npm i -g rimraf
```

Install concurrently npm package globally:

```bash
npm i -g concurrently
```

Install electron-rebuild npm package globally:

```bash
npm i -g electron-rebuild
```

Install yarn npm package globally:

```bash
npm i -g yarn
```

## Deploy requirements

Copy github personal token with repo scope from package.json and add it to Windows environment variables as GH_TOKEN.

Before "yarn deploy" dont forget to bump app version in src/package.json

## Package manager: yarn

## Main scripts

```bash
# start
yarn start
# package without publish
# package all app without publish
yarn package
# package and publish to github
# package all app and publish it to github
yarn deploy
```
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"build": "concurrently \"yarn build:main\" \"yarn build:renderer\" \"yarn build:python\"",
"build:main": "cross-env NODE_ENV=production webpack --config ./.erb/configs/webpack.config.main.prod.babel.js",
"build:renderer": "cross-env NODE_ENV=production webpack --config ./.erb/configs/webpack.config.renderer.prod.babel.js",
"build:python": "pyinstaller --noconsole --noconfirm --clean --hidden-import flask --distpath ./python --icon ./assets/icon.ico ./src/python/app.py",
"build:python": "pyinstaller --noconsole --noconfirm --clean --hidden-import flask --distpath ./python --paths ./src/python/venv/Lib/site-packages --icon ./assets/icon.ico ./src/python/app.py",
"rebuild": "electron-rebuild --parallel --types prod,dev,optional --module-dir src",
"lint": "cross-env NODE_ENV=development eslint . --cache --ext .js,.jsx,.ts,.tsx",
"package": "rimraf src/dist && yarn build && electron-builder build --win --publish never",
Expand Down
Binary file added src/python/__pycache__/app.cpython-39.pyc
Binary file not shown.
5 changes: 5 additions & 0 deletions src/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Flask
flask-cors
requests
pywinauto
flask_limiter

0 comments on commit 3918679

Please sign in to comment.