Skip to content

Instantly share code, notes, and snippets.

@ssp
Last active November 1, 2016 15:00
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssp/1c152c9a70bace500108ab9bae69624f to your computer and use it in GitHub Desktop.
Save ssp/1c152c9a70bace500108ab9bae69624f to your computer and use it in GitHub Desktop.
Script to clone and build gitx
#!/usr/bin/env sh
#
# Script to clone gitx from github and build it using
# the scripts provided by the project.
#
# Sven-S. Porst @ssp <ssp-web@earthlingsoft.net>
#
git clone https://github.com/ssp/gitx.git
cd gitx
git submodule update --init --recursive
cd objective-git
script/bootstrap
script/update_libgit2
cd ..
./build.py build release
open build/Release
@aziz
Copy link

aziz commented Aug 8, 2016

Traceback (most recent call last):
  File "./build.py", line 3, in <module>
    import argh
ImportError: No module named argh
The file /Users/allen/Github/gitx/build/Release does not exist.

@larsblumberg
Copy link

larsblumberg commented Aug 10, 2016

@aziz:
run sudo pip install argh

Then ignore error messages at the end of running ./build.py build release, it still creates a runnable app.

@larsblumberg
Copy link

@ssp: You may want to update your script

@aziz
Copy link

aziz commented Aug 14, 2016

still can't build this:

The following build commands failed:
    PhaseScriptExecution Run\ Script:\ Link\ fr_CA\ to\ fr /Users/allen/Library/Developer/Xcode/DerivedData/GitX-eyaqpiumdfcarmfzfxoamwgdbtyu/Build/Intermediates/Sparkle.build/Release/Sparkle.build/Script-6195D4B40E40505A00D41A50.sh
(1 failure)
error: Command '['xcrun', 'xcodebuild', '-scheme', 'Release', '-workspace', 'GitX.xcodeproj/project.xcworkspace', 'build', 'CONFIGURATION_BUILD_DIR=/Users/allen/Github/gitx/build/Release']' returned non-zero exit status 65

@elreydetodo
Copy link

gitx mmeyer$ ./build/Release/gitx
dyld: Library not loaded: @rpath/ObjectiveGit.framework/ObjectiveGit
  Referenced from: /Users/mmeyer/src/gitx/./build/Release/gitx
  Reason: image not found
Trace/BPT trap: 5

Looks like ObjectiveGit didn't get linked in properly... I'm not sure what to do from here.

@MarkPerkins
Copy link

@elreydetodo Just run the release scheme from XCode

@corysimmons
Copy link

As Mark said, just skip the ./build.py build release step and open the XCodeProj. Then run Build. It should create a functional binary in release dir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment