Skip to content

Commit

Permalink
bumping version to v18.09.0
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Oct 1, 2018
1 parent 161c702 commit 8947d46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.09.0
v18.09.1
13 changes: 5 additions & 8 deletions ipsws.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@ package main

import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"path"
"runtime"
"sync"
"time"

"github.com/apex/log"
clihander "github.com/apex/log/handlers/cli"
"github.com/blacktop/get-ipsws/api"
"github.com/blacktop/get-ipsws/kernelcache"
"github.com/blacktop/get-ipsws/lzss"
_ "github.com/blacktop/get-ipsws/statik"
Expand Down Expand Up @@ -154,17 +151,17 @@ func main() {
Usage: "crawl theiphonewiki.com and create JSON database",
Action: func(c *cli.Context) error {
// i := api.GetDevice("iPhone10,1")
i := api.GetIPSW("iPhone11,2", "16A366")
fmt.Println(i)
DownloadFile(path.Base(i.URL), i.URL)
Unzip(path.Base(i.URL), "caches")
// i := api.GetIPSW("iPhone11,2", "16A366")
// fmt.Println(i)
// DownloadFile(path.Base(i.URL), i.URL)
// Unzip(path.Base(i.URL), "caches")
// ScrapeIPhoneWiki()
kc, err := kernelcache.Open("caches/kernelcache.release.iphone11")
if err != nil {
return err
}
dec := lzss.Decompress(kc.Data)
err = ioutil.WriteFile("caches/kernelcache.release.iphone11.decompressed", dec, 0644)
err = ioutil.WriteFile("caches/kernelcache.release.iphone11.decompressed", dec[:kc.Header.UncompressedSize], 0644)
if err != nil {
return err
}
Expand Down

0 comments on commit 8947d46

Please sign in to comment.