forked from namecoin/namecoin-legacy
-
Notifications
You must be signed in to change notification settings - Fork 3
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
10 changed files
with
1,710 additions
and
0 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{ CFBundleDisplayName = "611 Core"; CFBundleName = "611 Core"; } |
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
### MacDeploy ### | ||
|
||
For Snow Leopard (which uses [Python 2.6](http://www.python.org/download/releases/2.6/)), you will need the param_parser package: | ||
|
||
sudo easy_install argparse | ||
|
||
This script should not be run manually, instead, after building as usual: | ||
|
||
make deploy | ||
|
||
During the process, the disk image window will pop up briefly where the fancy | ||
settings are applied. This is normal, please do not interfere. | ||
|
||
When finished, it will produce `Bitcoin-Core.dmg`. | ||
|
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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,52 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
UNSIGNED="$1" | ||
SIGNATURE="$2" | ||
ARCH=x86_64 | ||
ROOTDIR=dist | ||
TEMPDIR=signed.temp | ||
OUTDIR=signed-app | ||
|
||
if [ -z "$UNSIGNED" ]; then | ||
echo "usage: $0 <unsigned app> <signature>" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$SIGNATURE" ]; then | ||
echo "usage: $0 <unsigned app> <signature>" | ||
exit 1 | ||
fi | ||
|
||
rm -rf ${TEMPDIR} && mkdir -p ${TEMPDIR} | ||
tar -C ${TEMPDIR} -xf ${UNSIGNED} | ||
cp -rf "${SIGNATURE}"/* ${TEMPDIR} | ||
|
||
if [ -z "${PAGESTUFF}" ]; then | ||
PAGESTUFF=${TEMPDIR}/pagestuff | ||
fi | ||
|
||
if [ -z "${CODESIGN_ALLOCATE}" ]; then | ||
CODESIGN_ALLOCATE=${TEMPDIR}/codesign_allocate | ||
fi | ||
|
||
find ${TEMPDIR} -name "*.sign" | while read i; do | ||
SIZE=`stat -c %s "${i}"` | ||
TARGET_FILE="`echo "${i}" | sed 's/\.sign$//'`" | ||
|
||
echo "Allocating space for the signature of size ${SIZE} in ${TARGET_FILE}" | ||
${CODESIGN_ALLOCATE} -i "${TARGET_FILE}" -a ${ARCH} ${SIZE} -o "${i}.tmp" | ||
|
||
OFFSET=`${PAGESTUFF} "${i}.tmp" -p | tail -2 | grep offset | sed 's/[^0-9]*//g'` | ||
if [ -z ${QUIET} ]; then | ||
echo "Attaching signature at offset ${OFFSET}" | ||
fi | ||
|
||
dd if="$i" of="${i}.tmp" bs=1 seek=${OFFSET} count=${SIZE} 2>/dev/null | ||
mv "${i}.tmp" "${TARGET_FILE}" | ||
rm "${i}" | ||
echo "Success." | ||
done | ||
mv ${TEMPDIR}/${ROOTDIR} ${OUTDIR} | ||
rm -rf ${TEMPDIR} | ||
echo "Signed: ${OUTDIR}" |
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,47 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
ROOTDIR=dist | ||
BUNDLE="${ROOTDIR}/611-Qt.app" | ||
CODESIGN=codesign | ||
TEMPDIR=sign.temp | ||
TEMPLIST=${TEMPDIR}/signatures.txt | ||
OUT=signature.tar.gz | ||
OUTROOT=osx | ||
|
||
if [ ! -n "$1" ]; then | ||
echo "usage: $0 <codesign args>" | ||
echo "example: $0 -s MyIdentity" | ||
exit 1 | ||
fi | ||
|
||
rm -rf ${TEMPDIR} ${TEMPLIST} | ||
mkdir -p ${TEMPDIR} | ||
|
||
${CODESIGN} -f --file-list ${TEMPLIST} "$@" "${BUNDLE}" | ||
|
||
grep -v CodeResources < "${TEMPLIST}" | while read i; do | ||
TARGETFILE="${BUNDLE}/`echo "${i}" | sed "s|.*${BUNDLE}/||"`" | ||
SIZE=`pagestuff "$i" -p | tail -2 | grep size | sed 's/[^0-9]*//g'` | ||
OFFSET=`pagestuff "$i" -p | tail -2 | grep offset | sed 's/[^0-9]*//g'` | ||
SIGNFILE="${TEMPDIR}/${OUTROOT}/${TARGETFILE}.sign" | ||
DIRNAME="`dirname "${SIGNFILE}"`" | ||
mkdir -p "${DIRNAME}" | ||
echo "Adding detached signature for: ${TARGETFILE}. Size: ${SIZE}. Offset: ${OFFSET}" | ||
dd if="$i" of="${SIGNFILE}" bs=1 skip=${OFFSET} count=${SIZE} 2>/dev/null | ||
done | ||
|
||
grep CodeResources < "${TEMPLIST}" | while read i; do | ||
TARGETFILE="${BUNDLE}/`echo "${i}" | sed "s|.*${BUNDLE}/||"`" | ||
RESOURCE="${TEMPDIR}/${OUTROOT}/${TARGETFILE}" | ||
DIRNAME="`dirname "${RESOURCE}"`" | ||
mkdir -p "${DIRNAME}" | ||
echo "Adding resource for: "${TARGETFILE}"" | ||
cp "${i}" "${RESOURCE}" | ||
done | ||
|
||
rm ${TEMPLIST} | ||
|
||
tar -C "${TEMPDIR}" -czf "${OUT}" . | ||
rm -rf "${TEMPDIR}" | ||
echo "Created ${OUT}" |
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,32 @@ | ||
<?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>window_bounds</key> | ||
<array> | ||
<integer>300</integer> | ||
<integer>300</integer> | ||
<integer>800</integer> | ||
<integer>620</integer> | ||
</array> | ||
<key>background_picture</key> | ||
<string>background.tiff</string> | ||
<key>icon_size</key> | ||
<integer>96</integer> | ||
<key>applications_symlink</key> | ||
<true/> | ||
<key>items_position</key> | ||
<dict> | ||
<key>Applications</key> | ||
<array> | ||
<integer>370</integer> | ||
<integer>156</integer> | ||
</array> | ||
<key>611-Qt.app</key> | ||
<array> | ||
<integer>128</integer> | ||
<integer>156</integer> | ||
</array> | ||
</dict> | ||
</dict> | ||
</plist> |
Oops, something went wrong.