-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
75 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
icons/png/* | ||
build | ||
build/* | ||
.DS_STORE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
set -e # stop the execution of a script if any of the steps fail | ||
|
||
# This bash script expects a single argument which is the version name | ||
# version names would be formatted as such eg. 1.0.1 | ||
if [ -z "$1" ]; then | ||
echo "No version argument was supplied eg. 1.0.1" | ||
echo "eg ./bin/package-release 1.0.1" | ||
exit 1 | ||
fi | ||
|
||
VERSION=$1 | ||
|
||
# Create a temporary build folder to store archives | ||
mkdir -p build | ||
|
||
echo "SVG — Package" | ||
zip -j -r "build/k8s-icons-${VERSION}-svg.zip" icons/svg | ||
|
||
echo "PNG 64px — Generate and Package" | ||
./bin/svg-to-png.sh 64 | ||
zip -j -r "build/k8s-icons-${VERSION}-png-64px.zip" icons/png/64px | ||
|
||
echo "PNG 128px — Generate and Package" | ||
./bin/svg-to-png.sh 128 | ||
zip -j -r "build/k8s-icons-${VERSION}-png-128px.zip" icons/png/128px | ||
|
||
echo "PNG 256px — Generate and Package" | ||
./bin/svg-to-png.sh 256 | ||
zip -j -r "build/k8s-icons-${VERSION}-png-256px.zip" icons/png/256px | ||
|
||
echo "PNG 512px — Generate and Package" | ||
./bin/svg-to-png.sh 512 | ||
zip -j -r "build/k8s-icons-${VERSION}-png-512px.zip" icons/png/512px |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Package Release Tool | ||
|
||
The purpose of this tool is to help generate out common icon sizes and formats into downloadable archives which are then uploaded as releases on Github. | ||
|
||
## How to run the tool | ||
|
||
You need to supply a version number. | ||
|
||
``` | ||
./bin/package-release 1.0.0 | ||
``` | ||
|
||
## Where to find the archives after running the tool | ||
|
||
The icon archives will be generated in the `build` directory eg. | ||
|
||
``` | ||
build/ | ||
k8s-icons-1.0.0-png64px.zip | ||
k8s-icons-1.0.0-png128px.zip | ||
k8s-icons-1.0.0-png256px.zip | ||
k8s-icons-1.0.0-png512px.zip | ||
k8s-icons-1.0.0-svg.zip | ||
``` | ||
|
||
## Run in Gitpod | ||
|
||
Gitpod is a Cloud Developer Environment (CDE) that allows you to quickly spin Visual Studio Code backed by a ephemeral container within your web-browser. | ||
|
||
This repoistory contains a `.gitpod.yml' and it will automatically install the dependencies you need in order to run all tools for this repository. | ||
|
||
Gitpod has a generous free tier. | ||
|
||
You can follow this link in order to spin up a Gitpod environment for this repo: | ||
|
||
[https://gitpod.io/#https://github.com/ExamProCo/Kubernetes-Architecture-Icons](https://github.com/ExamProCo/Kubernetes-Architecture-Icons) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters