summary history branches tags files
commit:ecf5466a2bc4bb344a63b2379642769279567879
author:Trevor Bentley
committer:Trevor Bentley
date:Sun Jul 30 12:37:39 2017 +0200
parents:b7b42c4c6bad737bd9cb4cfab2349ea710fe2498
Bump to hn-0.3
diff --git a/Cargo.lock b/Cargo.lock
line changes: +3/-3
index c9ac9ba..3bcdd71
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3,7 +3,7 @@ name = "toucHNews"
 version = "0.2.2-rc"
 dependencies = [
  "fruitbasket 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
- "hn 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+ "hn 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
  "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
  "open 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
  "rubrail 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -216,7 +216,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
 
 [[package]]
 name = "hn"
-version = "0.2.0"
+version = "0.3.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 dependencies = [
  "futures 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -982,7 +982,7 @@ dependencies = [
 "checksum futures 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)" = "4b63a4792d4f8f686defe3b39b92127fea6344de5d38202b2ee5a11bbbf29d6a"
 "checksum futures-cpupool 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "a283c84501e92cade5ea673a2a7ca44f71f209ccdd302a3e0896f50083d2c5ff"
 "checksum gcc 0.3.51 (registry+https://github.com/rust-lang/crates.io-index)" = "120d07f202dcc3f72859422563522b66fe6463a4c513df062874daad05f85f0a"
-"checksum hn 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "249ae948702de28c0e9b0d1b7f6f11fc065163c50e9e73019eec5a12de4fc624"
+"checksum hn 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "45fae322779138f93cad827cd7a3c71ad6c1f1088618988ead332e44f501f772"
 "checksum httparse 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "af2f2dd97457e8fb1ae7c5a420db346af389926e36f43768b96f101546b04a07"
 "checksum humantime 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "0e9298fffb2a54569e1fcb818e9c2ff77caa2fad68d64b6e409b9f777bdb1960"
 "checksum hyper 0.11.2 (registry+https://github.com/rust-lang/crates.io-index)" = "641abc3e3fcf0de41165595f801376e01106bca1fd876dda937730e477ca004c"

diff --git a/Cargo.toml b/Cargo.toml
line changes: +1/-1
index f614488..3eaee92
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -19,7 +19,7 @@ panic = 'unwind'
 
 [dependencies]
 rubrail = "0.4"
-hn = "0.2"
+hn = "0.3"
 open = "1.2"
 log = {version = "0.3", optional = true }
 

diff --git a/release_osx.sh b/release_osx.sh
line changes: +1/-33
index d6e91f2..996f992
--- a/release_osx.sh
+++ b/release_osx.sh
@@ -6,39 +6,7 @@ APPDIR="toucHNews.app"
 
 echo "Building OS X app..."
 
-cargo build --release
-
-rm -rf "$DST/$APPDIR"
-rm -rf "$DST/$APP.zip"
-rm -rf "$DST/$APP.md5"
-mkdir "$DST/$APPDIR/"
-mkdir "$DST/$APPDIR/Contents/"
-mkdir "$DST/$APPDIR/Contents/Resources/"
-mkdir "$DST/$APPDIR/Contents/MacOS/"
-
-cp -a "target/release/toucHNews" "$DST/$APPDIR/Contents/MacOS/"
-
-(cd icon && ./gen_iconset.sh)
-cp -a icon/toucHNews.icns "$DST/$APPDIR/Contents/Resources/"
-
-strip -u -r "$DST/$APPDIR/Contents/MacOS/toucHNews"
-
-cat > "$DST/$APPDIR/Contents/Info.plist" << EOF
-{
-   CFBundleName = toucHNews;
-   CFBundleDisplayName = toucHNews;
-   CFBundleIdentifier = "com.trevorbentley.toucHNews";
-   CFBundleExecutable = toucHNews;
-   CFBundleIconFile = "toucHNews.icns";
-
-   CFBundleVersion = "0.0.2";
-   CFBundleInfoDictionaryVersion = "6.0";
-   CFBundlePackageType = APPL;
-   CFBundleSignature = xxxx;
-
-   LSMinimumSystemVersion = "10.10.0";
-}
-EOF
+cargo run --release && pkill "$APP"
 
 (cd "$DST" && zip -r9 "$APP.zip" "$APPDIR" && md5 "$APP.zip" > "$APP.md5")