-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
215 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,6 @@ nosetests.xml | |
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
*.i*86 | ||
*.x86_64 | ||
*.hex | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>English</string> | ||
<key>CFBundleDisplayName</key> | ||
<string>ReproUnzip</string> | ||
<key>CFBundleDocumentTypes</key> | ||
<array> | ||
<dict> | ||
<key>CFBundleTypeExtensions</key> | ||
<array> | ||
<string>rpz</string> | ||
</array> | ||
<key>CFBundleTypeName</key> | ||
<string>ReproZip Package</string> | ||
<key>CFBundleTypeOSTypes</key> | ||
<array> | ||
<string>????</string> | ||
</array> | ||
<key>CFBundleTypeRole</key> | ||
<string>Viewer</string> | ||
</dict> | ||
</array> | ||
<key>CFBundleExecutable</key> | ||
<string>reprounzip-qt</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>edu.nyu.engineering.vida.reprounzip</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>reprounzip-qt</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>1.0</string> | ||
<key>LSHasLocalizedDisplayName</key> | ||
<false/> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <unistd.h> | ||
|
||
int main(int argc, char **argv) { | ||
char **args = malloc(sizeof(char*) * (argc + 1)); | ||
size_t i; | ||
for(i = 1; i < argc; ++i) { | ||
args[i] = argv[i]; | ||
} | ||
args[argc] = 0; | ||
execv("/opt/reprounzip/reprounzip-qt", args); | ||
perror("execv failed"); | ||
return 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <unistd.h> | ||
|
||
/* This version of reprounzip-qt runs from a virtualenv, useful for local | ||
* development on reprounzip-qt while still starting it as a Mac app bundle */ | ||
|
||
int main(int argc, char **argv) { | ||
char **args = malloc(sizeof(char*) * (argc + 4)); | ||
size_t i; | ||
args[0] = "/bin/sh"; | ||
args[1] = "-c"; | ||
args[2] = ". /Users/remram/Documents/programming/_venvs/reprozip/bin/activate && reprounzip-qt \"$@\""; | ||
args[3] = "-"; | ||
for(i = 1; i < argc; ++i) { | ||
args[i + 3] = argv[i]; | ||
} | ||
args[argc + 3] = 0; | ||
execv("/bin/sh", args); | ||
perror("execv failed"); | ||
return 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Reset PATH to not include macports, etc | ||
export DYLD_FRAMEWORK_PATH=/opt/reprounzip/Frameworks | ||
export CFLAGS="-mmacosx-version-min=10.8 -isysroot /Developer/SDKs/MacOSX10.8.sdk" | ||
export LDFLAGS="-mmacosx-version-min=10.8 -isysroot /Developer/SDKs/MacOSX10.8.sdk" | ||
export MACOS_DEPLOYMENT_TARGET=10.8 | ||
Build Python with --prefix=/opt/reprounzip/python27 | ||
Copy reprounzip and reprounzip-qt to /opt/reprounzip | ||
Install pip with get-pip.py | ||
Install reprounzip, reprounzip-docker, reprounzip-vagrant, reprounzip-vistrails | ||
Install sip and PyQt4 | ||
Install reprounzip-qt | ||
Build shim application: | ||
gcc -mmacosx-version-min=10.8 -isysroot /Developer/SDKs/MacOSX10.8.sdk \ | ||
reprounzip-qt.c -o ReproUnzip.app/Contents/MacOS/reprounzip-qt | ||
Put QtCore.framework and QtGui.framework in /opt/reprounzip/Frameworks | ||
Build installer using ReproUnzip.pkgproj | ||
Packages application: http://s.sudre.free.fr/Software/Packages/about.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
DYLD_FRAMEWORK_PATH=/opt/reprounzip/Frameworks; export DYLD_FRAMEWORK_PATH | ||
PATH="/opt/reprounzip:$PATH" | ||
exec "$(dirname "$0")/python27/bin/reprounzip-qt" "$@" |
Oops, something went wrong.