Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Commit

Permalink
add build/run scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
btoews committed Jan 31, 2017
1 parent c55058f commit 73ad85b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SoftU2F
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>SoftU2FTool.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>1</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
Expand Down
16 changes: 16 additions & 0 deletions script/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

set -e

REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )"
BUILD_DIR=$REPO_DIR/build

# Build softu2f.kext
$REPO_DIR/SoftU2F/script/build

echo "Building SoftU2FTool.app"
if ! xcodebuild -scheme SoftU2FTool -project SoftU2FTool.xcodeproj SYMROOT=$BUILD_DIR &> /dev/null; then
echo "Error building SoftU2FTool.app"
exit 1
fi
echo "Built SoftU2FTool.app"
12 changes: 12 additions & 0 deletions script/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -e

REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )"
BUILD_DIR=$REPO_DIR/build

# Load softu2f.kext
$REPO_DIR/SoftU2F/script/load

# Run it
$BUILD_DIR/Debug/SoftU2FTool.app/Contents/MacOS/SoftU2FTool

0 comments on commit 73ad85b

Please sign in to comment.