Skip to content

Commit 48dc4c3

Browse files
committed
add files
1 parent fb530be commit 48dc4c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+22070
-2
lines changed

.circleci/config.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Golang CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-go/ for more details
4+
version: 2
5+
jobs:
6+
build:
7+
docker:
8+
# specify the version
9+
- image: circleci/golang:1.10
10+
11+
# Specify service dependencies here if necessary
12+
# CircleCI maintains a library of pre-built images
13+
# documented at https://circleci.com/docs/2.0/circleci-images/
14+
# - image: circleci/postgres:9.4
15+
16+
#### TEMPLATE_NOTE: go expects specific checkout path representing url
17+
#### expecting it in the form of
18+
#### /go/src/github.com/circleci/go-tool
19+
#### /go/src/bitbucket.org/circleci/go-tool
20+
working_directory: /go/src/github.com/blacktop/get-ipsws
21+
steps:
22+
- checkout
23+
- setup_remote_docker
24+
# specify any bash command here prefixed with `run: `
25+
- run: go run *.go --help

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@
1010

1111
# Output of the go coverage tool, specifically when used with LiteIDE
1212
*.out
13+
14+
dist/

.goreleaser.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# This is an example goreleaser.yaml file with some sane defaults.
2+
# Make sure to check the documentation at http://goreleaser.com
3+
builds:
4+
- binary: get-ipsws
5+
goos:
6+
- windows
7+
- darwin
8+
- linux
9+
goarch:
10+
- amd64
11+
ldflags: -s -w -X main.Version={{.Version}} -X main.BuildTime={{.Date}}
12+
13+
archive:
14+
format: tar.gz
15+
format_overrides:
16+
- goos: windows
17+
format: zip
18+
replacements:
19+
amd64: amd64
20+
darwin: macOS
21+
linux: linux
22+
windows: win
23+
24+
brew:
25+
github:
26+
owner: get-ipsws
27+
name: homebrew-tap
28+
folder: Formula
29+
homepage: "https://github.com/blacktop/get-ipsws"
30+
description: "Download ipsw(s) from theiphonewiki.com"
31+
test: |
32+
system "#{bin}/get-ipsws --version"
33+
checksum:
34+
name_template: "checksums.txt"
35+
sign:
36+
artifacts: checksum
37+
snapshot:
38+
name_template: "{{ .Tag }}-next"
39+
changelog:
40+
sort: asc
41+
filters:
42+
exclude:
43+
- "^docs:"
44+
- "^test:"

.vscode/launch.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Generate",
9+
"type": "go",
10+
"request": "launch",
11+
"mode": "auto",
12+
"remotePath": "",
13+
"port": 2345,
14+
"host": "127.0.0.1",
15+
"program": "${workspaceRoot}/ipsws.go",
16+
"env": {},
17+
"args": ["generate"],
18+
"showLog": false
19+
},
20+
{
21+
"name": "Query",
22+
"type": "go",
23+
"request": "launch",
24+
"mode": "auto",
25+
"remotePath": "",
26+
"port": 2345,
27+
"host": "127.0.0.1",
28+
"program": "${workspaceRoot}/ipsws.go",
29+
"env": {},
30+
"args": ["-V", "-b", "16A5364a"],
31+
"showLog": false
32+
}
33+
]
34+
}

Gopkg.lock

+87
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Gopkg.toml example
2+
#
3+
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
4+
# for detailed Gopkg.toml documentation.
5+
#
6+
# required = ["github.com/user/thing/cmd/thing"]
7+
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
8+
#
9+
# [[constraint]]
10+
# name = "github.com/user/project"
11+
# version = "1.0.0"
12+
#
13+
# [[constraint]]
14+
# name = "github.com/user/project2"
15+
# branch = "dev"
16+
# source = "github.com/myfork/project2"
17+
#
18+
# [[override]]
19+
# name = "github.com/x/y"
20+
# version = "2.4.0"
21+
#
22+
# [prune]
23+
# non-go = false
24+
# go-tests = true
25+
# unused-packages = true
26+
27+
28+
[[constraint]]
29+
name = "github.com/apex/log"
30+
version = "1.0.0"
31+
32+
[[constraint]]
33+
name = "github.com/urfave/cli"
34+
version = "1.20.0"
35+
36+
[[constraint]]
37+
name = "github.com/PuerkitoBio/goquery"
38+
version = "1.4.1"
39+
40+
[[constraint]]
41+
branch = "master"
42+
name = "github.com/dustin/go-humanize"
43+
44+
[[constraint]]
45+
name = "github.com/rakyll/statik"
46+
version = "0.1.4"
47+
48+
[[constraint]]
49+
name = "github.com/tidwall/gjson"
50+
version = "1.1.3"
51+
52+
[[constraint]]
53+
name = "github.com/pkg/errors"
54+
version = "0.8.0"
55+
56+
[prune]
57+
go-tests = true
58+
unused-packages = true

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018
3+
Copyright (c) 2018 blacktop
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
REPO=blacktop
2+
NAME=graboid
3+
VERSION=$(shell cat VERSION)
4+
MESSAGE?="New release ${VERSION}"
5+
6+
# TODO remove \|/templates/\|/api
7+
SOURCE_FILES?=$$(go list ./... | grep -v /vendor/)
8+
TEST_PATTERN?=.
9+
TEST_OPTIONS?=
10+
11+
GIT_COMMIT=$(git rev-parse HEAD)
12+
GIT_DIRTY=$(test -n "`git status --porcelain`" && echo "+CHANGES" || true)
13+
GIT_DESCRIBE=$(git describe --tags)
14+
15+
16+
setup: ## Install all the build and lint dependencies
17+
@echo "===> Installing deps"
18+
go get -u github.com/alecthomas/gometalinter
19+
go get -u github.com/golang/dep/...
20+
go get -u github.com/pierrre/gotestcover
21+
go get -u golang.org/x/tools/cmd/cover
22+
dep ensure
23+
gometalinter --install
24+
25+
test: ## Run all the tests
26+
gotestcover $(TEST_OPTIONS) -covermode=atomic -coverprofile=coverage.txt $(SOURCE_FILES) -run $(TEST_PATTERN) -timeout=30s
27+
28+
cover: test ## Run all the tests and opens the coverage report
29+
go tool cover -html=coverage.txt
30+
31+
fmt: ## gofmt and goimports all go files
32+
find . -name '*.go' -not -wholename './vendor/*' | while read -r file; do gofmt -w -s "$$file"; goimports -w "$$file"; done
33+
34+
lint: ## Run all the linters
35+
gometalinter --vendor --disable-all \
36+
--enable=deadcode \
37+
--enable=ineffassign \
38+
--enable=gosimple \
39+
--enable=staticcheck \
40+
--enable=gofmt \
41+
--enable=goimports \
42+
--enable=dupl \
43+
--enable=misspell \
44+
--enable=errcheck \
45+
--enable=vet \
46+
--enable=vetshadow \
47+
--deadline=10m \
48+
./...
49+
markdownfmt -w README.md
50+
51+
.PHONY: release
52+
release: ## Create a new release from the VERSION
53+
@echo "===> Creating Release"
54+
@hack/make/release ${VERSION}
55+
@goreleaser --rm-dist
56+
57+
ci: lint test ## Run all the tests and code checks
58+
59+
build: ## Build a beta version of malice
60+
@echo "===> Building Binaries"
61+
go build
62+
63+
clean: ## Clean up artifacts
64+
rm *.tar
65+
66+
# Absolutely awesome: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
67+
help:
68+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
69+
70+
.DEFAULT_GOAL := help

README.md

+40-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,41 @@
11
# get-ipsws
2-
Download ipsw(s) from theiphonewiki.com
2+
3+
[![Circle CI](https://circleci.com/gh/blacktop/get-ipsws.png?style=shield)](https://circleci.com/gh/blacktop/get-ipsws) [![GitHub release](https://img.shields.io/github/release/blacktop/get-ipsws.svg)](https://github.com/https://github.com/blacktop/get-ipsws/releases/releases) [![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)
4+
5+
> Download ipsw(s) from theiphonewiki.com
6+
7+
---
8+
9+
## Getting Started
10+
11+
```$
12+
$ get-ipsws --help
13+
14+
Usage: get-ipsws [OPTIONS] COMMAND [arg...]
15+
IPSW Downloader
16+
Version: , BuildTime:
17+
Author: blacktop - <https://github.com/blacktop>
18+
19+
Options:
20+
--verbose, -V verbose output
21+
--device value, -d value iOS Device [$IOS_DEVICE]
22+
--ios-version value, --iv value iOS Version [$IOS_VERSION]
23+
--build value, -b value iOS Build [$IOS_BUILD]
24+
--keys value, -k value iOS Keys [$IOS_KEYS]
25+
--help, -h show help
26+
--version, -v print the version
27+
28+
Commands:
29+
generate crawl theiphonewiki.com and create JSON database
30+
help Shows a list of commands or help for one command
31+
32+
Run 'get-ipsws COMMAND --help' for more information on a command.
33+
```
34+
35+
## Issues
36+
37+
Find a bug? Want more features? Find something missing in the documentation? Let me know! Please don't hesitate to [file an issue](https://github.com/blacktop/get-ipsws/issues/new)
38+
39+
## License
40+
41+
MIT Copyright (c) 2018 **blacktop**

VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18.08.0

database/ipsw.json

+1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)