Skip to content

Commit

Permalink
Merge pull request #55 from olab-io/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
bakercp committed Jun 13, 2014
2 parents e828411 + 07d705b commit 7b46ce2
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
- 0.1.3 (06-13-2014)
+ Regression requires reengineering of WebSocketLoggerChannel. Removed for now.
+ Fixed auto release download link. Now links to binary release if available.
+ Updated build script.

- 0.1.2 (06-13-2014)
+ Fix hang on quit https://github.com/olab-io/ofSketch/issues/52.

Expand Down
29 changes: 26 additions & 3 deletions ofSketchApp/bin/data/DocumentRoot/js/ofSketch/ofSketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,33 @@ $(document).ready( function()
{
var downloadURL = latestRelease.zipball_url;
var htmlURL = latestRelease.html_url;
var assets = latestRelease.assets;

var target = systemInfo.version.target.toLowerCase();

var binaryURL = "";

for (var i = 0; i < assets.length; ++i) {
var asset = assets[i]

if (asset.name.indexOf(target) >= 0) {
// Minor hack because direct access requires header use.
// https://developer.github.com/v3/repos/releases/
binaryURL = (htmlURL + "/" + asset.name).replace("tag", "download");
break;
}
}

// Attempt to feed a binary url directly if one is available.
if (binaryURL.length > 0)
{
$('#remote-version-download-link').attr('href', binaryURL);
}
else
{
$('#remote-version-download-link').attr('href', htmlURL);
}

// TODO: This needs an upgrade with more useful information and clickable links.
// alert("Your ofSketch Version is out of Date. Please upgrade <a href=\"" + downloadURL +"\">here</a>");
$('#remote-version-download-link').attr('href', downloadURL);
$('.remote-version').text(remoteVersion);
$('.local-version').text(localVersion);

Expand Down
6 changes: 3 additions & 3 deletions ofSketchApp/src/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ App::App():
server->getWebSocketRoute()->registerWebSocketEvents(this);

// Set up websocket logger.
_loggerChannel = WebSocketLoggerChannel::makeShared();
_loggerChannel->setWebSocketRoute(server->getWebSocketRoute());
ofSetLoggerChannel(_loggerChannel);
// _loggerChannel = WebSocketLoggerChannel::makeShared();
// _loggerChannel->setWebSocketRoute(server->getWebSocketRoute());
// ofSetLoggerChannel(_loggerChannel);

_logo.loadImage("media/openFrameworks.png");
_font.loadFont(OF_TTF_SANS, 20);
Expand Down
4 changes: 2 additions & 2 deletions ofSketchApp/src/App.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,15 @@ class App: public ofBaseApp
{
VERSION_MAJOR = 0,
VERSION_MINOR = 1,
VERSION_PATCH = 2
VERSION_PATCH = 3
};

static const std::string VERSION_PRE_RELEASE;

private:
HTTP::BasicJSONRPCServer::SharedPtr server;

WebSocketLoggerChannel::SharedPtr _loggerChannel;
// WebSocketLoggerChannel::SharedPtr _loggerChannel;

Poco::ThreadPool _threadPool;
ProcessTaskQueue _taskQueue;
Expand Down
6 changes: 6 additions & 0 deletions scripts/build_distro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
#
# ./build_distro.sh osx 0.1.1

if [ $# -ne 2 ]
then
echo "SYSTEM and VERSION Arguments required."
exit 1
fi

# the current build system
SYSTEM=$1

Expand Down

0 comments on commit 7b46ce2

Please sign in to comment.