-
-
Notifications
You must be signed in to change notification settings - Fork 155
/
.goreleaser.yml
910 lines (877 loc) · 27.2 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=jcroql
version: 2
before:
hooks:
- go mod tidy
- go generate ./...
- ./hack/make/completions
- ./hack/make/manpages
- ./hack/make/json_mini
- ./hack/make/py_mini
snapshot:
version_template: "{{ incpatch .Version }}-next"
# gomod:
# proxy: true
report_sizes: true
metadata:
mod_timestamp: "{{ .CommitTimestamp }}"
builds:
# CLIs ###########################################################
- id: darwin_build
main: ./cmd/ipsw
binary: ipsw
env:
- CGO_ENABLED=1
goos:
- darwin
goarch:
- amd64
- arm64
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags: -s -w -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppVersion={{.Version}} -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppBuildCommit={{.Commit}}
- id: darwin_ios_build
main: ./cmd/ipsw
binary: ipsw
env:
- CGO_ENABLED=1
- CC=$GOROOT/misc/ios/clangwrap.sh
goos:
- ios
goarch:
- arm64
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags: -s -w -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppVersion={{.Version}} -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppBuildCommit={{.Commit}}
hooks:
post:
- ./hack/make/codesign {{ .Path }}
- id: darwin_extras_build
main: ./cmd/ipsw
binary: ipsw
env:
- CGO_ENABLED=1
- CC=sandbox-exec -f $PWD/hack/goreleaser/profile.sb cc
- >-
{{- if eq .Arch "amd64" }}CGO_LDFLAGS=-L/usr/local/homebrew/lib -framework IOKit
{{- else if eq .Arch "arm64" }}CGO_LDFLAGS=-L/opt/homebrew/lib -framework IOKit
{{- end }}
- >-
{{- if eq .Arch "amd64" }}CGO_CFLAGS=-I/usr/local/homebrew/include
{{- else if eq .Arch "arm64" }}CGO_CFLAGS=-I/opt/homebrew/include
{{- end }}
goos:
- darwin
goarch:
- amd64
- arm64
tags:
- libusb
- unicorn
- objc
- sandbox
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags: -s -w -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppVersion={{.Version}} -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppBuildCommit={{.Commit}}
hooks:
post:
- ./hack/make/delete-all-rpaths {{ .Path }}
- id: darwin_frida_build
main: ./cmd/ipsw
binary: ipsw
env:
- CGO_ENABLED=1
- CGO_LDFLAGS=-L/usr/local/homebrew/lib
- CGO_CFLAGS=-I/usr/local/homebrew/include
- >-
{{- if eq .Arch "amd64" }}CGO_LDFLAGS=-L/usr/local/homebrew/lib
{{- else if eq .Arch "arm64" }}CGO_LDFLAGS=-L/opt/homebrew/lib
{{- end }}
- >-
{{- if eq .Arch "amd64" }}CGO_CFLAGS=-I/usr/local/homebrew/include
{{- else if eq .Arch "arm64" }}CGO_CFLAGS=-I/opt/homebrew/include
{{- end }}
goos:
- darwin
goarch:
- amd64
- arm64
tags:
- frida
- libusb
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags: -s -w -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppVersion={{.Version}} -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppBuildCommit={{.Commit}}
hooks:
post:
- ./hack/make/delete-all-rpaths {{ .Path }}
- id: linux_build
main: ./cmd/ipsw
binary: ipsw
env:
- CGO_ENABLED=1
- >-
{{- if eq .Arch "amd64" }}CC=zig cc -target x86_64-linux-musl
{{- else if eq .Arch "arm64" }}CC=zig cc -target aarch64-linux-musl
{{- end }}
- >-
{{- if eq .Arch "amd64" }}CXX=zig cc -target x86_64-linux-musl
{{- else if eq .Arch "arm64" }}CXX=zig cc -target aarch64-linux-musl
{{- end }}
goos:
- linux
goarch:
- amd64
- arm64
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags: -s -w -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppVersion={{.Version}} -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppBuildCommit={{.Commit}}
# - id: linux_amd64_extras_build
# hooks:
# pre:
# - hack/make/libusb x86_64
# - hack/make/unicorn x86_64
# post:
# - /opt/homebrew/opt/llvm/bin/llvm-strip {{ .Path }}
# main: ./cmd/ipsw
# binary: ipsw
# env:
# - CGO_ENABLED=1
# - CC=zig cc -target x86_64-linux-musl
# - CXX=zig c++ -target x86_64-linux-musl
# - CGO_LDFLAGS=-L/tmp/install_x86_64/usr/local/lib
# - PKG_CONFIG_PATH=/tmp/install_x86_64/usr/local/lib/pkgconfig
# - CGO_CFLAGS=-I/tmp/install_x86_64/usr/local/include/libusb-1.0 -I/tmp/install_x86_64/usr/local/include
# tags:
# - libusb
# - unicorn
# goos:
# - linux
# goarch:
# - amd64
# mod_timestamp: "{{ .CommitTimestamp }}"
# flags:
# - -trimpath
# ldflags: -s -w -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppVersion={{.Version}} -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppBuildCommit={{.Commit}}
# - id: linux_arm64_extras_build
# hooks:
# pre:
# - hack/make/libusb aarch64
# - hack/make/unicorn aarch64
# post:
# - /opt/homebrew/opt/llvm/bin/llvm-strip {{ .Path }}
# main: ./cmd/ipsw
# binary: ipsw
# env:
# - CGO_ENABLED=1
# - CC=zig cc -target aarch64-linux-musl
# - CXX=zig c++ -target aarch64-linux-musl
# - CGO_LDFLAGS=-L/tmp/install_aarch64/usr/local/lib
# - PKG_CONFIG_PATH=/tmp/install_aarch64/usr/local/lib/pkgconfig
# - CGO_CFLAGS=-I/tmp/install_aarch64/usr/local/include/libusb-1.0 -I/tmp/install_aarch64/usr/local/include
# tags:
# - libusb
# - unicorn
# goos:
# - linux
# goarch:
# - arm64
# mod_timestamp: "{{ .CommitTimestamp }}"
# flags:
# - -trimpath
# ldflags: -s -w -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppVersion={{.Version}} -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppBuildCommit={{.Commit}}
- id: windows_build
main: ./cmd/ipsw
binary: ipsw
env:
- CGO_ENABLED=1
- >-
{{- if eq .Arch "386" }}CC=zig cc -target i386-windows-gnu
{{- else if eq .Arch "amd64" }}CC=zig cc -target x86_64-windows-gnu
{{- else if eq .Arch "arm64" }}CC=zig cc -target aarch64-windows-gnu
{{- end }}
- >-
{{- if eq .Arch "386" }}CXX=zig cc -target i386-windows-gnu
{{- else if eq .Arch "amd64" }}CXX=zig cc -target x86_64-windows-gnu
{{- else if eq .Arch "arm64" }}CXX=zig cc -target aarch64-windows-gnu
{{- end }}
goos:
- windows
goarch:
# - "386"
- amd64
- arm64
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags: -s -w -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppVersion={{.Version}} -X github.com/blacktop/ipsw/cmd/ipsw/cmd.AppBuildCommit={{.Commit}}
# DAEMONS ###########################################################
- id: darwin_daemon_build
main: ./cmd/ipswd
binary: ipswd
env:
- CGO_ENABLED=1
goos:
- darwin
goarch:
- amd64
- arm64
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags: -s -w -X github.com/blacktop/ipsw/api/types.BuildVersion={{.Version}} -X github.com/blacktop/ipsw/api/types.BuildTime={{.Commit}}
- id: linux_daemon_build
main: ./cmd/ipswd
binary: ipswd
env:
- CGO_ENABLED=1
- >-
{{- if eq .Arch "amd64" }}CC=zig cc -target x86_64-linux-musl
{{- else if eq .Arch "arm64" }}CC=zig cc -target aarch64-linux-musl
{{- end }}
- >-
{{- if eq .Arch "amd64" }}CXX=zig cc -target x86_64-linux-musl
{{- else if eq .Arch "arm64" }}CXX=zig cc -target aarch64-linux-musl
{{- end }}
goos:
- linux
goarch:
- amd64
- arm64
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags: -s -w -X github.com/blacktop/ipsw/api/types.BuildVersion={{.Version}} -X github.com/blacktop/ipsw/api/types.BuildTime={{.Commit}}
- id: windows_daemon_build
main: ./cmd/ipswd
binary: ipswd
env:
- CGO_ENABLED=1
- >-
{{- if eq .Arch "386" }}CC=zig cc -target i386-windows-gnu
{{- else if eq .Arch "amd64" }}CC=zig cc -target x86_64-windows-gnu
{{- else if eq .Arch "arm64" }}CC=zig cc -target aarch64-windows-gnu
{{- end }}
- >-
{{- if eq .Arch "386" }}CXX=zig cc -target i386-windows-gnu
{{- else if eq .Arch "amd64" }}CXX=zig cc -target x86_64-windows-gnu
{{- else if eq .Arch "arm64" }}CXX=zig cc -target aarch64-windows-gnu
{{- end }}
goos:
- windows
goarch:
# - "386"
- amd64
- arm64
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags: -s -w -X github.com/blacktop/ipsw/api/types.BuildVersion={{.Version}} -X github.com/blacktop/ipsw/api/types.BuildTime={{.Commit}}
universal_binaries:
- id: darwin_build
replace: false
- id: darwin_daemon_build
replace: false
archives:
- id: default_archive
builds:
- darwin_build
- darwin_ios_build
- darwin_universal
- linux_build
- windows_build
name_template: >-
{{ .ProjectName }}_{{ .Version }}_
{{- if eq .Os "darwin" }}macOS
{{- else if eq .Os "ios" }}iOS
{{- else }}{{ .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if eq .Arch "all" }}universal
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
builds_info:
group: root
owner: root
files:
- README.md
- LICENSE
- completions/ipsw/*
- manpages/*
- config.example.yml
- id: extras_archive
builds:
- darwin_extras_build
# - linux_amd64_extras_build
# - linux_arm64_extras_build
name_template: >-
{{ .ProjectName }}_{{ .Version }}_
{{- if eq .Os "darwin" }}macOS
{{- else if eq .Os "ios" }}iOS
{{- else }}{{ .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if eq .Arch "all" }}universal
{{- else }}{{ .Arch }}{{ end }}_extras
files:
- README.md
- LICENSE
- completions/ipsw/*
- manpages/*
- config.example.yml
- id: frida_archive
builds:
- darwin_frida_build
name_template: >-
{{ .ProjectName }}_{{ .Version }}_
{{- if eq .Os "darwin" }}macOS
{{- else if eq .Os "ios" }}iOS
{{- else }}{{ .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if eq .Arch "all" }}universal
{{- else }}{{ .Arch }}{{ end }}_frida
files:
- README.md
- LICENSE
- completions/ipsw/*
- manpages/*
- config.example.yml
- id: daemon_archive
builds:
- darwin_daemon_build
- linux_daemon_build
- windows_daemon_build
name_template: >-
ipswd_{{ .Version }}_
{{- if eq .Os "darwin" }}macOS
{{- else if eq .Os "ios" }}iOS
{{- else }}{{ .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if eq .Arch "all" }}universal
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
builds_info:
group: root
owner: root
files:
- README.md
- LICENSE
- completions/ipswd/*
- config.example.yml
brews:
- repository:
owner: blacktop
name: homebrew-tap
ids:
- extras_archive
directory: Formula
homepage: "https://github.com/blacktop/ipsw"
description: "iOS/macOS Research Swiss Army Knife"
license: MIT
dependencies:
- name: bat
type: optional
- name: libusb
type: optional
- name: unicorn
type: optional
- name: git-delta
type: optional
conflicts:
- ipsw-frida
install: |
bin.install "ipsw"
prefix.install "LICENSE", "README.md", "config.example.yml"
(etc/"ipsw").mkpath
etc.install prefix/"config.example.yml" => "ipsw/config.yml"
bash_completion.install "completions/ipsw/_bash" => "ipsw"
zsh_completion.install "completions/ipsw/_zsh" => "_ipsw"
fish_completion.install "completions/ipsw/_fish" => "ipsw.fish"
man1.install Dir["manpages/*"]
test: |
system "#{bin}/ipsw --version"
- name: ipsw-frida
repository:
owner: blacktop
name: homebrew-tap
ids:
- frida_archive
directory: Formula
homepage: "https://github.com/blacktop/ipsw"
description: "iOS/macOS Research Swiss Army Knife"
license: MIT
dependencies:
- name: bat
type: optional
- name: libusb
type: optional
conflicts:
- ipsw
install: |
bin.install "ipsw"
prefix.install "LICENSE", "README.md", "config.example.yml"
(etc/"ipsw").mkpath
etc.install prefix/"config.example.yml" => "ipsw/config.yml"
bash_completion.install "completions/ipsw/_bash" => "ipsw"
zsh_completion.install "completions/ipsw/_zsh" => "_ipsw"
fish_completion.install "completions/ipsw/_fish" => "ipsw.fish"
man1.install Dir["manpages/*"]
test: |
system "#{bin}/ipsw --version"
- name: ipswd
repository:
owner: blacktop
name: homebrew-tap
ids:
- daemon_archive
directory: Formula
homepage: "https://github.com/blacktop/ipsw"
description: "ipsw - Daemon"
license: MIT
dependencies:
- name: libusb
type: optional
caveats: |
By default, ipswd runs on localhost (127.0.0.1), port 3993.
If you would like to change these settings, you will have to
edit the configuration file:
#{etc}/ipsw/config.yml
To restart ipswd after an upgrade or config change:
brew services restart ipswd
Or, if you don't want/need a background service you can just run:
/opt/homebrew/opt/ipswd/bin/ipswd start
To see ipswd logs:
tail -f /opt/homebrew/var/log/ipswd.log
To remove ipswd:
brew services stop ipswd
brew uninstall ipswd
install: |
bin.install "ipswd"
prefix.install "LICENSE", "README.md", "config.example.yml"
(etc/"ipsw").mkpath
etc.install prefix/"config.example.yml" => "ipsw/config.yml"
bash_completion.install "completions/ipswd/_bash" => "ipswd"
zsh_completion.install "completions/ipswd/_zsh" => "_ipswd"
fish_completion.install "completions/ipswd/_fish" => "ipswd.fish"
service: |
run [opt_bin/"ipswd", "start", "--config", etc/"ipsw/config.yml"]
environment_variables IPSW_IN_HOMEBREW: 1
keep_alive true
log_path var/"log/ipswd.log"
error_log_path var/"log/ipswd.err.log"
sockets "tcp://127.0.0.1:3993"
test: |
system "#{bin}/ipswd --version"
checksum:
name_template: "checksums.txt"
signs:
- artifacts: checksum
sboms:
- artifacts: archive
nix:
- name: ipsw
ids:
- default_archive
repository:
owner: blacktop
name: nur
homepage: https://github.com/blacktop/ipsw
description: iOS/macOS Research Swiss Army Knife
path: pkgs/ipsw/default.nix
license: mit
extra_install: |-
installManPage ./manpages/ipsw.1.gz
installShellCompletion ./completions/ipsw/*
aurs:
- ids:
- default_archive
homepage: https://github.com/blacktop/ipsw
description: iOS/macOS Research Swiss Army Knife
maintainers:
- "Blacktop <https://github.com/blacktop>"
license: MIT
private_key: /Users/blacktop/.ssh/aur
git_url: "ssh://[email protected]/ipsw-bin.git"
backup:
- etc/ipsw.conf
package: |-
# bin
install -Dm755 "./ipsw" "${pkgdir}/usr/bin/ipsw"
# license
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/ipsw/LICENSE"
# completions
mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/"
install -Dm644 "./completions/ipsw/_bash" "${pkgdir}/usr/share/bash-completion/completions/ipsw"
install -Dm644 "./completions/ipsw/_zsh" "${pkgdir}/usr/share/zsh/site-functions/_ipsw"
install -Dm644 "./completions/ipsw/_fish" "${pkgdir}/usr/share/fish/vendor_completions.d/ipsw.fish"
# man pages
install -Dm644 "./manpages/ipsw.1.gz" "${pkgdir}/usr/share/man/man1/ipsw.1.gz"
# config
mkdir -p "${pkgdir}/etc"
install -Dm644 "./config.example.yml" "${pkgdir}/etc/ipsw.conf"
- ids:
- daemon_archive
name: ipswd
homepage: https://github.com/blacktop/ipsw
description: ipsw - Daemon
maintainers:
- "Blacktop <https://github.com/blacktop>"
license: MIT
private_key: /Users/blacktop/.ssh/aur
git_url: "ssh://[email protected]/ipswd-bin.git"
backup:
- etc/ipsw.conf
package: |-
# bin
install -Dm755 "./ipswd" "${pkgdir}/usr/bin/ipswd"
# license
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/ipswd/LICENSE"
# completions
mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/"
install -Dm644 "./completions/ipswd/_bash" "${pkgdir}/usr/share/bash-completion/completions/ipswd"
install -Dm644 "./completions/ipswd/_zsh" "${pkgdir}/usr/share/zsh/site-functions/_ipswd"
install -Dm644 "./completions/ipswd/_fish" "${pkgdir}/usr/share/fish/vendor_completions.d/ipswd.fish"
# man pages
install -Dm644 "./manpages/ipswd.1.gz" "${pkgdir}/usr/share/man/man1/ipswd.1.gz"
# config
mkdir -p "${pkgdir}/etc"
install -Dm644 "./config.example.yml" "${pkgdir}/etc/ipsw.conf"
nfpms:
- id: packages
builds:
- linux_build
homepage: https://github.com/blacktop/ipsw
description: |-
iOS/macOS Research Swiss Army Knife.
maintainer: Blacktop <https://github.com/blacktop>
license: MIT
vendor: Blacktop
bindir: /usr/bin
section: utils
contents:
- src: ./config.example.yml
dst: /etc/ipsw/config.yml
type: config|noreplace
file_info:
mode: 0644
- src: ./completions/ipsw/_bash
dst: /usr/share/bash-completion/completions/ipsw
file_info:
mode: 0644
- src: ./completions/ipsw/_zsh
dst: /usr/share/zsh/vendor-completions/_ipsw
file_info:
mode: 0644
- src: ./completions/ipsw/_fish
dst: /usr/share/fish/vendor_completions.d/ipsw.fish
file_info:
mode: 0644
- src: ./manpages/ipsw.1.gz
dst: /usr/share/man/man1/ipsw.1.gz
file_info:
mode: 0644
- src: ./LICENSE
dst: /usr/share/doc/ipsw/copyright
file_info:
mode: 0644
file_name_template: >-
{{ .ProjectName }}_{{ .Version }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
formats:
- deb
- rpm
- apk
- archlinux
deb:
lintian_overrides:
- statically-linked-binary
- changelog-file-missing-in-native-package
- id: daemon
package_name: ipswd
builds:
- linux_daemon_build
homepage: https://github.com/blacktop/ipsw
description: |-
ipsw daemon.
maintainer: Blacktop <https://github.com/blacktop>
license: MIT
vendor: Blacktop
bindir: /usr/bin
section: utils
provides:
- ipswd
contents:
- src: ./hack/goreleaser/linux_install/ipsw.service
dst: /usr/lib/systemd/user/ipsws.service
file_info:
mode: 0644
- src: ./config.example.yml
dst: /etc/ipsw/config.yml
type: config|noreplace
file_info:
mode: 0644
- src: ./completions/ipswd/_bash
dst: /usr/share/bash-completion/completions/ipswd
file_info:
mode: 0644
- src: ./completions/ipswd/_zsh
dst: /usr/share/zsh/vendor-completions/_ipswd
file_info:
mode: 0644
- src: ./completions/ipswd/_fish
dst: /usr/share/fish/vendor_completions.d/ipswd.fish
file_info:
mode: 0644
- src: ./LICENSE
dst: /usr/share/doc/ipsw/copyright
file_info:
mode: 0644
scripts:
postinstall: "./hack/goreleaser/linux_install/postinstall.sh"
postremove: "./hack/goreleaser/linux_install/postremove.sh"
file_name_template: >-
ipswd_{{ .Version }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
formats:
- deb
- rpm
- apk
- archlinux
deb:
lintian_overrides:
- statically-linked-binary
- changelog-file-missing-in-native-package
snapcrafts:
- id: snaps
builds:
- linux_build
# - linux_amd64_extras_build
# - linux_arm64_extras_build
summary: iOS/macOS Research Swiss Army Knife.
description: |
iOS/macOS Research Swiss Army Knife.
grade: stable
confinement: strict
publish: true
license: MIT
extra_files:
- source: ./completions/ipsw/_bash
destination: /usr/share/completions
mode: 0644
- source: ./completions/ipsw/_zsh
destination: /usr/share/completions
mode: 0644
- source: ./completions/ipsw/_fish
destination: /usr/share/completions
mode: 0644
- source: ./manpages/ipsw.1.gz
destination: /usr/share/man/man1/ipsw.1.gz
mode: 0644
- source: ./LICENSE
destination: /usr/share/doc/ipsw/copyright
mode: 0644
- source: ./config.example.yml
destination: /etc/ipsw/config.yml
mode: 0644
layout:
# The path you want to access in sandbox.
/etc/ipsw/config.yml:
bind_file: $SNAP_DATA/etc/ipsw/config.yml
/usr/share/bash-completion/completions/ipsw:
bind_file: $SNAP_DATA/usr/share/completions/_bash
/usr/share/zsh/vendor-completions/_ipsw:
bind_file: $SNAP_DATA/usr/share/completions/_zsh
/usr/share/fish/vendor_completions.d/ipsw.fish:
bind_file: $SNAP_DATA/usr/share/completions/_fish
apps:
ipsw:
command: ipsw
plugs: ["home", "network"]
- id: snaps-daemon
builds:
- linux_daemon_build
name: ipswd
name_template: "ipswd-{{.Version}}-{{.Os}}-{{.Arch}}"
summary: ipsw - Daemon.
description: |
ipsw - Daemon.
grade: stable
confinement: strict
publish: true
license: MIT
extra_files:
- source: ./hack/goreleaser/linux_install/ipswd.wrapper
destination: /bin/ipswd.wrapper
mode: 0755
- source: ./completions/ipswd/_bash
destination: /usr/share/completions/_bash
mode: 0644
- source: ./completions/ipswd/_zsh
destination: /usr/share/completions/_zsh
mode: 0644
- source: ./completions/ipswd/_fish
destination: /usr/share/completions/_fish
mode: 0644
- source: ./LICENSE
destination: /usr/share/doc/ipsw/copyright
mode: 0644
- source: ./config.example.yml
destination: /etc/ipsw/config.yml
mode: 0644
layout:
# The path you want to access in sandbox.
/usr/share/bash-completion/completions/ipswd:
bind_file: $SNAP/usr/share/completions/_bash
/usr/share/zsh/vendor-completions/_ipswd:
bind_file: $SNAP/usr/share/completions/_zsh
/usr/share/fish/vendor_completions.d/ipswd.fish:
bind_file: $SNAP/usr/share/completions/_fish
apps:
ipswd:
command: bin/ipswd.wrapper
daemon: simple
refresh_mode: restart
restart_condition: "always"
environment:
IPSW_IN_SNAP: 1
IPSW_DAEMON_SOCKET: $SNAP_COMMON/ipsw.sock
sockets:
sock:
listen-stream: $SNAP_COMMON/ipsw.sock
socket-mode: 0770
plugs: ["home", "network", "network-bind"]
scoops:
- ids: [default_archive]
name: ipsw
repository:
owner: blacktop
name: scoop-bucket
homepage: https://blacktop.github.io/ipsw
description: iOS/macOS Research Swiss Army Knife
license: MIT
- ids: [daemon_archive]
name: ipswd
repository:
owner: blacktop
name: scoop-bucket
homepage: https://blacktop.github.io/ipsw
description: ipsw - Daemon
license: MIT
winget:
- name: ipsw
publisher: blacktop
license: MIT
homepage: https://github.com/blacktop/ipsw
short_description: iOS/macOS Research Swiss Army Knife
ids:
- default_archive
repository:
owner: blacktop
name: winget-pkgs
branch: "ipsw-{{.Version}}"
pull_request:
enabled: true
draft: false
base:
owner: microsoft
name: winget-pkgs
branch: master
- name: ipswd
publisher: blacktop
license: MIT
homepage: https://github.com/blacktop/ipsw
short_description: ipsw - Daemon
ids:
- daemon_archive
repository:
owner: blacktop
name: winget-pkgs
branch: "ipswd-{{.Version}}"
pull_request:
enabled: true
draft: false
base:
owner: microsoft
name: winget-pkgs
branch: master
# chocolateys:
# - project_url: https://github.com/blacktop/ipsw
# icon_url: https://github.com/blacktop/ipsw/raw/master/docs/static/images/ipsw.png
# license_url: https://github.com/blacktop/ipsw/blob/master/LICENSE
# authors: blacktop
# release_notes: "https://github.com/blacktop/ipsw/releases/tag/v{{ .Version }}"
# copyright: 2018-2024 blacktop
# project_source_url: https://github.com/blacktop/ipsw
# docs_url: https://blacktop.github.io/ipsw/
# summary: iOS/macOS Research Swiss Army Knife
# description: Everything you need to do security research on iOS and macOS.
# tags: "iOS macOS security research swiss-army-knife"
changelog:
sort: asc
use: github
groups:
- title: Dependency updates
regexp: '^.*?(.+)\(deps\)!?:.+$'
order: 300
- title: "New Features"
regexp: '^.*?feat(\(.+\))??!?:.+$'
order: 100
- title: "Security updates"
regexp: '^.*?sec(\(.+\))??!?:.+$'
order: 150
- title: "Bug fixes"
regexp: '^.*?(fix|refactor)(\(.+\))??!?:.+$'
order: 200
- title: "Documentation updates"
regexp: ^.*?docs?(\(.+\))??!?:.+$
order: 400
- title: "Build process updates"
regexp: ^.*?(build|ci)(\(.+\))??!?:.+$
order: 400
- title: Other work
order: 9999
filters:
include:
- "^feat.*"
- "^fix.*"
- "^chore.*"
- "^sec.*"
- "^(doc|docs).*"
release:
footer: |
### Summary
**Full Changelog**: https://github.com/blacktop/ipsw/compare/{{ .PreviousTag }}...{{ .Tag }}
## What to do next?
- Read the [documentation](https://blacktop.github.io/ipsw)
- Follow us on [Twitter](https://twitter.com/blacktop__)
- Follow us on [Mastodon](https://mastodon.social/@blacktop)
announce:
discord:
enabled: false
message_template: "`ipsw` {{ .Tag }} is out! Check it out: https://github.com/blacktop/ipsw/releases/tag/{{ .Tag }}"
mastodon:
enabled: false
message_template: "`ipsw` {{ .Tag }} is out! Check it out: https://github.com/blacktop/ipsw/releases/tag/{{ .Tag }}"
server: https://mastodon.social