Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ainoya/stamp
Signing git commit id on your app icon face to identify which version of apps I test easily
https://github.com/ainoya/stamp
Last synced: 10 days ago
JSON representation
Signing git commit id on your app icon face to identify which version of apps I test easily
- Host: GitHub
- URL: https://github.com/ainoya/stamp
- Owner: ainoya
- Created: 2015-08-09T15:50:45.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-10T00:49:41.000Z (about 9 years ago)
- Last Synced: 2024-10-17T23:03:44.010Z (20 days ago)
- Language: Go
- Homepage:
- Size: 961 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Stamp
=======Sign git commit-id on ios app icon when build phase.
![](https://dl.dropboxusercontent.com/u/10177896/4062bb26d867f3b6488bef4abf8dd009.png)
Setup
------First, to use stamp, you have to install `imagemagick` and `ghostscript` command to your mac:
```
brew install imagemagick ghostscript
```Then, download `stamp` binary:
```
wget https://github.com/ainoya/stamp/releases/download/v0.1.0/stamp -O /usr/local/bin/stamp && chmod +x /usr/local/bin/stamp
```How to use
-----------```
USAGE:
Stamp [global options] command [command options] [arguments...]GLOBAL OPTIONS:
--in File path of source icon
--out File path of output image
```For example:
```
stamp --in YourAppRepository/[email protected] --out assets/[email protected]
```If you want to add git commit-id to your app icon with `stamp`,
add below script run script section in "Build phase" of Xcode:```
export PATH=$PATH:/usr/local/binfor orig in $(find ${SRCROOT} -name '*-origin.png'); do
OUTPUT_PATH=$(echo ${orig} | sed "s/-origin//")
stamp --in ${orig} --out ${OUTPUT_PATH}
done
```In this case, you have to locate your original app icon as named `*-origin.png`. this script strip `-origin` prefix and use it as generated icon name.
for Example, if you name original icon as `[email protected]`, Generated file will be named `[email protected]`, then you need to set `[email protected]` instead of `[email protected]` in your App icon assets before.
Reference
------------ [Overlaying application version on top of your icon - Krzysztof Zabłocki](http://merowing.info/2013/03/overlaying-application-version-on-top-of-your-icon/#.Vbxr_ZOqpBd)