Skip to content

Latest commit

 

History

History
50 lines (43 loc) · 1.2 KB

README.md

File metadata and controls

50 lines (43 loc) · 1.2 KB

INSTALL

git clone https://github.com/siemens-mobile-hacks/sdk
git clone https://github.com/siemens-mobile-hacks/patches
git clone https://github.com/siemens-mobile-hacks/swilib-tools

cd swilib-tools
npm install

Expected filesystem structure:

.
├── patches/        <-- git siemens-mobile-hacks/patches
├── sdk/            <-- git siemens-mobile-hacks/sdk
└── swilib-tools/   <-- git siemens-mobile-hacks/swilib-tools

Current architecture uses sdk and patches from the parent directory.

USAGE

  1. Check local swilib.vkp for errors:
# You can specify phone model or platform
node bin/swilib-tools.js check EL71v45 path/to/swilib.vkp 
node bin/swilib-tools.js check ELKA path/to/swilib.vkp
  1. Check swilib.vkp from https://patches.kibab.com
# Don't forget git pull in patches & sdk repos
node bin/swilib-tools.js check EL71v45
  1. Merge two swilibs into single one (interactive):
node bin/swilib-tools.js check C81v51 swilib_a.vkp swilib_b.vkp new_swilib.vjp

HTTP API SERVER

Yout can use https://pm2.keymetrics.io/ for process manager.

Setup:

pm2 start ecosystem.config.cjs
pm2 save

Deploy:

./deploy.sh