Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4dad131

Browse files
committed
Fixed appcast script
1 parent 3540343 commit 4dad131

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

imageoptim/update_appcast.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
$bundleName = "ImageOptim";
44
$baseURL = dirname(readKey('SUFeedURL'));
5-
$minOSVersion = readKey('LSMinimumSystemVersion');
5+
$minOSVersion = "10.8";
66
$exactVersion = readKey('CFBundleVersion');
77
$niceVersion = readKey('CFBundleShortVersionString');
88
if (!$niceVersion) $niceVersion = $exactVersion;
99

1010
$download_url = "$baseURL/$bundleName$niceVersion.tar.bz2";
11-
$archivepath = isset($argv[1]) ? $argv[1] : "DerivedData/ImageOptim/Build/Products/Release/$bundleName.tar.bz2";
11+
$archivepath = exec('xcodebuild -project ImageOptim.xcodeproj/ -showBuildSettings 2>/dev/null | fgrep TARGET_BUILD_DIR | awk \'{print $3}\'') . "/$bundleName.tar.bz2";
1212
$pempath = getenv("HOME")."/.ssh/dsa_priv_imageoptim.pem";
1313

1414
$appcastpath = rawurldecode(basename(readKey('SUFeedURL')));

0 commit comments

Comments
 (0)