include packaging changes

This commit is contained in:
2019-06-25 23:54:12 +05:30
parent 650a8b46f5
commit 41c950cbb3
4 changed files with 15 additions and 25 deletions

1
.gitignore vendored
View File

@@ -1,6 +1,5 @@
# Builds
index-*
index.exe
# Service Files
servicefile.xml
serviceScript.*

View File

@@ -1,2 +1,15 @@
# xml-servicefile-parser
Parse servicefile.xml from stock Android pieces to create a script to restore to stock
## Executable
### Building
1. `npm i`
2. `npm run package`
### Usage
1. Place alongside `servicefile.xml`.
2. Run executable or `node test`, if using source.

View File

@@ -4,7 +4,8 @@
"description": "Noob script to create scripts onn servicefile.xml",
"main": "index.js",
"scripts": {
"test": "node ."
"test": "node .",
"package":"pkg index.js --out-path build/"
},
"repository": {
"type": "git",

View File

@@ -1,23 +0,0 @@
#!/bin/bash
# Generated for ahannah
fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash dsp adspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash vendor vendor.img
fastboot flash oem oem.img
fastboot erase DDR
fastboot oem fb_mode_clear