Skip to content

Commit b3e53d9

Browse files
authored
Rename "AssetCacheTool" to "asset-cache-tool" (#2)
* Rename "AssetCacheTool" to "asset-cache-tool" * README adjustments for project rename.
1 parent a251ed1 commit b3e53d9

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

.github/workflows/linux.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
- name: Build Executable
1414
run: swift build -c release --arch x86_64
1515
- name: Copy Executable
16-
run: cp .build/release/AssetCacheTool AssetCacheTool
16+
run: cp .build/release/asset-cache-tool asset-cache-tool
1717
- name: Archive Executable
1818
uses: actions/upload-artifact@v2
1919
with:
20-
name: AssetCacheTool.amd64
21-
path: AssetCacheTool
20+
name: asset-cache-tool.amd64
21+
path: asset-cache-tool

.github/workflows/macos.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ jobs:
99
- name: Build Executable
1010
run: swift build -c release --arch arm64 --arch x86_64
1111
- name: Copy Executable
12-
run: cp .build/apple/Products/Release/AssetCacheTool AssetCacheTool
12+
run: cp .build/apple/Products/Release/asset-cache-tool asset-cache-tool
1313
- name: Archive Executable
1414
uses: actions/upload-artifact@v2
1515
with:
16-
name: AssetCacheTool
17-
path: AssetCacheTool
16+
name: asset-cache-tool
17+
path: asset-cache-tool
1818
format:
1919
runs-on: macos-11
2020
steps:
2121
- name: Checkout Repository
2222
uses: actions/checkout@v2
2323
- name: Swift Format
24-
run: swiftformat --lint Sources
24+
run: swiftformat --lint Package.swift Sources
2525
lint:
2626
runs-on: macos-11
2727
steps:
2828
- name: Checkout Repository
2929
uses: actions/checkout@v2
3030
- name: Swift Lint
31-
run: swiftlint Sources
31+
run: swiftlint Package.swift Sources

Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PackageDescription
44
let package = Package(
55
name: "AssetCacheTool",
66
products: [
7-
.executable(name: "AssetCacheTool", targets: ["AssetCacheTool"]),
7+
.executable(name: "asset-cache-tool", targets: ["AssetCacheTool"]),
88
.library(name: "AssetCacheLibrary", type: .static, targets: ["AssetCacheLibrary"])
99
],
1010
dependencies: [

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# AssetCacheTool
1+
# Asset Cache Tool
22

33
A library and tool for interacting with both the local and remote asset caches.
44

@@ -11,7 +11,7 @@ This is based on [research](https://github.com/kendfinger/AppleCache) I did a fe
1111
List assets inside the local cache.
1212

1313
```bash
14-
$ swift run AssetCacheTool list-local-assets
14+
$ swift run asset-cache-tool list-local-assets
1515
92F10AA2-A516-48EE-8A8F-16521B4B12D9 namespace=default index=unknown uri=/ios10.0/031-96898-20170613-6B3C72AA-4FA3-11E7-8777-44F3D6EEE68A/com_apple_MobileAsset_MediaSupport/a6741b0690cf20ecf4600b2249df9accf6e00690.zip
1616
```
1717

@@ -20,7 +20,7 @@ $ swift run AssetCacheTool list-local-assets
2020
Reassemble cached files in the local cache into a clean structure.
2121

2222
```bash
23-
$ swift run AssetCacheTool reassemble-local-cache
23+
$ swift run asset-cache-tool reassemble-local-cache
2424
Copy EF628FF9-639F-4700-A269-0874AA2DBCF7 -> cache/2021FCSFall/patches/002-21830/64B33144-0546-426F-9AC1-A032B2A934E0/com_apple_MobileAsset_SoftwareUpdate/a0dcd05ecac842606be647f9627bf5b1c5a7fdae.zip
2525
```
2626

@@ -29,7 +29,7 @@ Copy EF628FF9-639F-4700-A269-0874AA2DBCF7 -> cache/2021FCSFall/patches/002-21830
2929
Print the default local cache path.
3030

3131
```bash
32-
$ swift run AssetCacheTool print-local-cache-path
32+
$ swift run asset-cache-tool print-local-cache-path
3333
/Volumes/MyCacheDrive/Library/Application Support/Apple/AssetCache/Data
3434
```
3535

@@ -38,7 +38,7 @@ $ swift run AssetCacheTool print-local-cache-path
3838
Find caches that are located on the current system.
3939

4040
```bash
41-
$ swift run AssetCacheTool find-local-caches
41+
$ swift run asset-cache-tool find-local-caches
4242
/Volumes/MyCacheDrive/Library/Application Support/Apple/AssetCache/Data
4343
```
4444

@@ -47,7 +47,7 @@ $ swift run AssetCacheTool find-local-caches
4747
Find caches that are located on the network.
4848

4949
```bash
50-
$ swift run AssetCacheTool find-remote-caches -l 10.0.15.1
50+
$ swift run asset-cache-tool find-remote-caches -l 10.0.15.1
5151
GUID: 48B1475B-C221-43E6-967B-5802A2A795AB
5252
Address: 10.0.15.1
5353
Port: 8950
@@ -61,14 +61,14 @@ GUID: 48B1475B-C221-43E6-967B-5802A2A795AB
6161
Download a file from a remote cache.
6262

6363
```bash
64-
$ swift run AssetCacheTool download-remote-cache --remote-cache-url 'http://10.0.15.1:8950' 'https://appldnld.apple.com/myfile.zip' 'myfile.zip'
64+
$ swift run asset-cache-tool download-remote-cache --remote-cache-url 'http://10.0.15.1:8950' 'https://appldnld.apple.com/myfile.zip' 'myfile.zip'
6565
```
6666

6767
### cache-registration-configuration
6868

6969
Fetch the cache registration configuration.
7070

7171
```bash
72-
$ swift run AssetCacheTool cache-registration-configuration
72+
$ swift run asset-cache-tool cache-registration-configuration
7373
{"registrationURL":"https:\/\/lcdn-registration.apple.com\/lcdn\/register","certificateURL":"https:\/\/lcdn-registration.apple.com\/resource\/cert.cer","allowListedHosts":["swcdn.apple.com:80","swcdn.apple.com:443","validation.isu.apple.com:80","validation.isu.apple.com:443","appldnld.apple.com:80","oscdn.apple.com:80","oscdn.apple.com:443","swdist.apple.com:443","swdownload.apple.com:80","swdownload.apple.com:443","audiocontentdownload.apple.com:80","audiocontentdownload.apple.com:443","deimos.apple.com:80","deimos3.apple.com:80","basejumper.apple.com:80","basejumper.apple.com:443","playgrounds-assets-cdn.apple.com:443","playgrounds-cdn.apple.com:443","updates.cdn-apple.com:443","updates-http.cdn-apple.com:80","sylvan.apple.com:80","sylvan.apple.com:443","devimages-cdn.apple.com:80","devimages-cdn.apple.com:443","download.developer.apple.com:80","download.developer.apple.com:443"],"denyListURL":"http:\/\/suconfig.apple.com\/resource\/registration\/v1\/denylist.plist","whiteListedHosts":["swcdn.apple.com:80","swcdn.apple.com:443","validation.isu.apple.com:80","validation.isu.apple.com:443","appldnld.apple.com:80","oscdn.apple.com:80","oscdn.apple.com:443","swdist.apple.com:443","swdownload.apple.com:80","swdownload.apple.com:443","audiocontentdownload.apple.com:80","audiocontentdownload.apple.com:443","deimos.apple.com:80","deimos3.apple.com:80","basejumper.apple.com:80","basejumper.apple.com:443","playgrounds-assets-cdn.apple.com:443","playgrounds-cdn.apple.com:443","updates.cdn-apple.com:443","updates-http.cdn-apple.com:80","sylvan.apple.com:80","sylvan.apple.com:443","devimages-cdn.apple.com:80","devimages-cdn.apple.com:443","download.developer.apple.com:80","download.developer.apple.com:443"],"deregistrationURL":"https:\/\/lcdn-registration.apple.com\/lcdn\/deregister","whiteListedDomains":["phobos.apple.com:80","itunes.apple.com:80","itunes.apple.com:443","assets.itunes.com:80","assets.itunes.com:443"],"statisticsURL":"https:\/\/xp-cdn.apple.com\/report\/2\/xp_cdn_receipt","allowListedDomains":["phobos.apple.com:80","itunes.apple.com:80","itunes.apple.com:443","assets.itunes.com:80","assets.itunes.com:443"],"assetTypeMap":[{"map":[{"type":"swdist"}],"host":["swdist.apple.com"]},{"map":[{"type":"swdownload"}],"host":["swdownload.apple.com"]},{"map":[{"type":"swcdn"}],"host":["swcdn.apple.com"]},{"map":[{"type":"oscdn"}],"host":["oscdn.apple.com"]},{"map":[{"type":"validation"}],"host":["validation.isu.apple.com"]},{"map":[{"type":"appldnld"}],"host":["appldnld.apple.com"]},{"map":[{"type":"basejumper"}],"host":["basejumper.apple.com"]},{"map":[{"type":"playgrounds"}],"host":["playgrounds-assets-cdn.apple.com","playgrounds-cdn.apple.com"]},{"map":[{"type":"sylvan"}],"host":["sylvan.apple.com"]},{"map":[{"type":"dev"}],"host":["devimages-cdn.apple.com","download.developer.apple.com"]},{"map":[{"type":"gbnd"}],"host":["audiocontentdownload.apple.com"]},{"map":[{"type":"odr"}],"host":["odr.assets.itunes.com","odr.itunes.apple.com"]},{"map":[{"type":"itunesu"}],"host":["p1-u.itunes.apple.com","p2-u.itunes.apple.com","deimos.apple.com","deimos3.apple.com","itunesu.assets.itunes.com","itunesu.itunes.apple.com","itunesu-assets.itunes.apple.com"]},{"map":[{"type":"Apps","path":["\/*\/Purple*\/*.zip","\/*\/Purple*\/*.pkg","\/*\/Purple*\/*.ipa"]},{"type":"iBooks","path":["\/*\/Publication*\/*"]},{"type":"Movies","path":["\/*\/Video\/*f.m4v","\/*\/Video\/*f.mov"]},{"type":"Songs","path":["\/*\/Features\/*.m4p","\/*\/Features\/*.m4a","\/*\/Features\/*.mp4","\/*\/Music\/*.m4p","\/*\/Music\/*.m4a","\/*\/Music\/*.mp4"]},{"type":"itunesu","path":["\/*\/Cobalt*"]}],"host":["*.phobos.apple.com","*.v.phobos.apple.com","*.assets.itunes.com","books.itunes.apple.com","iosapps.itunes.apple.com","osxapps.itunes.apple.com"]},{"map":[{"type":"icloud","namespace":["icloud"],"path":["n\/a"]}],"host":["*"]}],"mediaTypeMap":[{"type":"iCloud","path":["n\/a"]},{"type":"iTunes U","path":["\/*\/Cobalt*","\/WebObjects\/Core.woa\/Download*","\/WebObjects\/Core.woa\/Feed*","\/WebObjects\/Core.woa\/Subscription*"]},{"type":"Books","path":["*.epub","*.ibooks"]},{"type":"Apple TV Software","path":["*[aA]pple[tT][vV]*","*tv[oO][sS]*","*\/Videos\/*.[mM][oO][vV]"]},{"type":"iOS Software","path":["*.ipa","*.ipd","*.ipsw","*.assetpack","\/ios*","\/iOS*"]},{"type":"Mac Software","path":["*.pkg","*.dmg"]},{"type":"Movies","path":["*.m4v","*.mov"]},{"type":"Music","path":["*.m4p","*.m4a","*.mp4"]},{"type":"Other"}],"blackListURL":"http:\/\/suconfig.apple.com\/resource\/registration\/v1\/blacklist.plist","establishmentURL":"https:\/\/lcdn-registration.apple.com\/lcdn\/session"}
7474
```

0 commit comments

Comments
 (0)