This repository has been archived by the owner on Oct 11, 2018. It is now read-only.
forked from wmcorless/paccoin
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding macdeploy and updating files to be able to compile
- Loading branch information
cryptokrypton
authored and
cryptokrypton
committed
Nov 17, 2017
1 parent
e1ca0bf
commit 6570212
Showing
13 changed files
with
1,814 additions
and
17 deletions.
There are no files selected for viewing
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`. | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,60 @@ | ||
#!/usr/bin/env python | ||
# Copyright (c) 2013-2016 The Bitcoin Core developers | ||
# Distributed under the MIT software license, see the accompanying | ||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
from __future__ import division,print_function,unicode_literals | ||
import biplist | ||
from ds_store import DSStore | ||
from mac_alias import Alias | ||
import sys | ||
|
||
output_file = sys.argv[1] | ||
package_name_ns = sys.argv[2] | ||
|
||
ds = DSStore.open(output_file, 'w+') | ||
ds['.']['bwsp'] = { | ||
'ShowStatusBar': False, | ||
'WindowBounds': b'{{300, 280}, {500, 343}}', | ||
'ContainerShowSidebar': False, | ||
'SidebarWidth': 0, | ||
'ShowTabView': False, | ||
'PreviewPaneVisibility': False, | ||
'ShowToolbar': False, | ||
'ShowSidebar': False, | ||
'ShowPathbar': True | ||
} | ||
|
||
icvp = { | ||
'gridOffsetX': 0.0, | ||
'textSize': 12.0, | ||
'viewOptionsVersion': 1, | ||
'backgroundImageAlias': b'\x00\x00\x00\x00\x02\x1e\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd1\x94\\\xb0H+\x00\x05\x00\x00\x00\x98\x0fbackground.tiff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x99\xd19\xb0\xf8\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\x00\x00\r\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b.background\x00\x00\x10\x00\x08\x00\x00\xd1\x94\\\xb0\x00\x00\x00\x11\x00\x08\x00\x00\xd19\xb0\xf8\x00\x00\x00\x01\x00\x04\x00\x00\x00\x98\x00\x0e\x00 \x00\x0f\x00b\x00a\x00c\x00k\x00g\x00r\x00o\x00u\x00n\x00d\x00.\x00t\x00i\x00f\x00f\x00\x0f\x00\x02\x00\x00\x00\x12\x00\x1c/.background/background.tiff\x00\x14\x01\x06\x00\x00\x00\x00\x01\x06\x00\x02\x00\x00\x0cMacintosh HD\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xce\x97\xab\xc3H+\x00\x00\x01\x88[\x88\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02u\xab\x8d\xd1\x94\\\xb0devrddsk\xff\xff\xff\xff\x00\x00\t \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x07bitcoin\x00\x00\x10\x00\x08\x00\x00\xce\x97\xab\xc3\x00\x00\x00\x11\x00\x08\x00\x00\xd1\x94\\\xb0\x00\x00\x00\x01\x00\x14\x01\x88[\x88\x00\x16\xa9\t\x00\x08\xfaR\x00\x08\xfaQ\x00\x02d\x8e\x00\x0e\x00\x02\x00\x00\x00\x0f\x00\x1a\x00\x0c\x00M\x00a\x00c\x00i\x00n\x00t\x00o\x00s\x00h\x00 \x00H\x00D\x00\x13\x00\x01/\x00\x00\x15\x00\x02\x00\x14\xff\xff\x00\x00\xff\xff\x00\x00', | ||
'backgroundColorBlue': 1.0, | ||
'iconSize': 96.0, | ||
'backgroundColorGreen': 1.0, | ||
'arrangeBy': 'none', | ||
'showIconPreview': True, | ||
'gridSpacing': 100.0, | ||
'gridOffsetY': 0.0, | ||
'showItemInfo': False, | ||
'labelOnBottom': True, | ||
'backgroundType': 2, | ||
'backgroundColorRed': 1.0 | ||
} | ||
alias = Alias.from_bytes(icvp['backgroundImageAlias']) | ||
alias.volume.name = package_name_ns | ||
alias.volume.posix_path = '/Volumes/' + package_name_ns | ||
alias.volume.disk_image_alias.target.filename = package_name_ns + '.temp.dmg' | ||
alias.volume.disk_image_alias.target.carbon_path = 'Macintosh HD:Users:\x00bitcoinuser:\x00Documents:\x00bitcoin:\x00bitcoin:\x00' + package_name_ns + '.temp.dmg' | ||
alias.volume.disk_image_alias.target.posix_path = 'Users/bitcoinuser/Documents/bitcoin/bitcoin/' + package_name_ns + '.temp.dmg' | ||
alias.target.carbon_path = package_name_ns + ':.background:\x00background.tiff' | ||
icvp['backgroundImageAlias'] = biplist.Data(alias.to_bytes()) | ||
ds['.']['icvp'] = icvp | ||
|
||
ds['.']['vSrn'] = ('long', 1) | ||
|
||
ds['Applications']['Iloc'] = (370, 156) | ||
ds['Bitcoin-Qt.app']['Iloc'] = (128, 156) | ||
|
||
ds.flush() | ||
ds.close() |
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,56 @@ | ||
#!/bin/sh | ||
# Copyright (c) 2014-2015 The Bitcoin Core developers | ||
# Distributed under the MIT software license, see the accompanying | ||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
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,51 @@ | ||
#!/bin/sh | ||
# Copyright (c) 2014-2015 The Bitcoin Core developers | ||
# Distributed under the MIT software license, see the accompanying | ||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
set -e | ||
|
||
ROOTDIR=dist | ||
BUNDLE="${ROOTDIR}/Bitcoin-Qt.app" | ||
CODESIGN=codesign | ||
TEMPDIR=sign.temp | ||
TEMPLIST=${TEMPDIR}/signatures.txt | ||
OUT=signature-osx.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,33 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2016 The Bitcoin Core developers | ||
# Distributed under the MIT software license, see the accompanying | ||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
set -e | ||
|
||
INPUTFILE="Xcode_7.3.1.dmg" | ||
HFSFILENAME="5.hfs" | ||
SDKDIR="Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk" | ||
|
||
7z x "${INPUTFILE}" "${HFSFILENAME}" | ||
SDKNAME="$(basename "${SDKDIR}")" | ||
SDKDIRINODE=$(ifind -n "${SDKDIR}" "${HFSFILENAME}") | ||
fls "${HFSFILENAME}" -rpF ${SDKDIRINODE} | | ||
while read type inode filename; do | ||
inode="${inode::-1}" | ||
if [ "${filename:0:14}" = "usr/share/man/" ]; then | ||
continue | ||
fi | ||
filename="${SDKNAME}/$filename" | ||
echo "Extracting $filename ..." | ||
mkdir -p "$(dirname "$filename")" | ||
if [ "$type" = "l/l" ]; then | ||
ln -s "$(icat "${HFSFILENAME}" $inode)" "$filename" | ||
else | ||
icat "${HFSFILENAME}" $inode >"$filename" | ||
fi | ||
done | ||
echo "Building ${SDKNAME}.tar.gz ..." | ||
MTIME="$(istat "${HFSFILENAME}" "${SDKDIRINODE}" | perl -nle 'm/Content Modified:\s+(.*?)\s\(/ && print $1')" | ||
find "${SDKNAME}" | sort | tar --no-recursion --mtime="${MTIME}" --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > "${SDKNAME}.tar.gz" | ||
echo 'All done!' |
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.png</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>Paccoin-qt.app</key> | ||
<array> | ||
<integer>128</integer> | ||
<integer>156</integer> | ||
</array> | ||
</dict> | ||
</dict> | ||
</plist> |
Oops, something went wrong.