Skip to content

Commit

Permalink
build v0.9.0 dev-2
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissimpkins committed Apr 11, 2016
1 parent d53874b commit e1aa65d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions bin/Crunch.app/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.9.0 dev-1</string>
<string>0.9.0 dev-2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>0.9.0 dev-1</string>
<string>0.9.0 dev-2</string>
<key>LSMinimumSystemVersion</key>
<string>10.7.0</string>
<key>LSUIElement</key>
Expand Down
10 changes: 5 additions & 5 deletions bin/Crunch.app/Contents/Resources/script
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
chug_title=" ______ __
| |.----.--.--.-----.----.| |--.
| ---|| _| | | | __|| |
|______||__| |_____|__|__|____||__|__| v0.9.0 dev-1
|______||__| |_____|__|__|____||__|__| v0.9.0 dev-2
"

# Message on application open (no arguments passed to script on initial open)
Expand All @@ -24,15 +24,15 @@ fi

for imagepath in "$@"
do
file_extension=${imagepath##*.}
if [[ $file_extension = "png" ]]; then
file_extension="${imagepath##*.}"
if [[ "$file_extension" = "png" ]]; then
echo "• • • Crunching $imagepath...\n"
echo " \n"
# get the pre compression size of the image file
pre_size=$(stat -f %z "$imagepath")
printf "Original size (kB): \t%.3f\n" $(bc -l <<< "$pre_size/1000")

working_imagepath="${imagepath%%.*}-crunch.png"
working_imagepath="${imagepath%.png}-crunch.png"

# pngquant run on the file
echo " \n"
Expand Down Expand Up @@ -63,7 +63,7 @@ do
if [[ -f "$working_imagepath" ]]; then
echo " " >/dev/null
else
sleep 2 # pause for two seconds for file write
sleep 2 # pause for two seconds
if [[ -f "$working_imagepath" ]]; then
echo " " >/dev/null
else
Expand Down

0 comments on commit e1aa65d

Please sign in to comment.