Merge pull request #5 from mrmekon/hn-0.3
Bump to hn-0.3
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)",
[[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)",
"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"
[dependencies]
rubrail = "0.4"
-hn = "0.2"
+hn = "0.3"
open = "1.2"
log = {version = "0.3", optional = true }
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")