Removes unused files
18
.gitignore
vendored
|
|
@ -13,11 +13,6 @@ cordova/*.keystore
|
|||
cache
|
||||
webkitbuilds/*
|
||||
!webkitbuilds/README.md
|
||||
!webkitbuilds/setup-win.iss
|
||||
!webkitbuilds/favicon.ico
|
||||
!webkitbuilds/.desktop
|
||||
!webkitbuilds/build-osx.sh
|
||||
!webkitbuilds/Background.png
|
||||
|
||||
# chrome extensions
|
||||
chrome-app/build/*
|
||||
|
|
@ -105,7 +100,6 @@ externalServices.json
|
|||
cordova/Makefile
|
||||
cordova/ProjectMakefile
|
||||
app-template/bitpay-wallet
|
||||
cordova/ProjectMakefile
|
||||
cordova/config.xml
|
||||
cordova/wp/Package.appxmanifest
|
||||
www/img/logo-negative.svg
|
||||
|
|
@ -113,22 +107,10 @@ www/img/logo.svg
|
|||
src/js/appConfig.js
|
||||
src/js/externalServices.js
|
||||
chrome-app/manifest.json
|
||||
webkitbuilds/.desktop
|
||||
webkitbuilds/setup-win.iss
|
||||
www/img/favicon.ico
|
||||
www/img/icon-128.png
|
||||
|
||||
|
||||
cordova/Makefile
|
||||
cordova/ProjectMakefile
|
||||
app-template/bitpay-wallet
|
||||
cordova/ProjectMakefile
|
||||
cordova/config.xml
|
||||
cordova/wp/Package.appxmanifest
|
||||
www/img/logo-negative.svg
|
||||
www/img/logo.svg
|
||||
src/js/appConfig.js
|
||||
|
||||
cordova/android/res/
|
||||
cordova/wp/Assets/
|
||||
cordova/wp/*.png
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ module.exports = function(grunt) {
|
|||
command: 'make -C cordova clean'
|
||||
},
|
||||
osx: {
|
||||
command: 'webkitbuilds/build-osx.sh sign'
|
||||
command: 'webkitbuilds/build-macos.sh sign'
|
||||
},
|
||||
coveralls: {
|
||||
command: 'cat coverage/report-lcov/lcov.info |./node_modules/coveralls/bin/coveralls.js'
|
||||
|
|
@ -209,7 +209,7 @@ module.exports = function(grunt) {
|
|||
files: [{
|
||||
expand: true,
|
||||
cwd: 'webkitbuilds/',
|
||||
src: ['.desktop', '../www/img/icons/favicon.ico', '../www/img/icons/icon-256.png'],
|
||||
src: ['.desktop', '../www/img/icons/favicon.ico', '../www/img/icons/512x512.png'],
|
||||
dest: 'webkitbuilds/Copay/linux64/',
|
||||
flatten: true,
|
||||
filter: 'isFile'
|
||||
|
|
@ -222,8 +222,8 @@ module.exports = function(grunt) {
|
|||
platforms: ['win64', 'osx64', 'linux64'],
|
||||
buildDir: './webkitbuilds',
|
||||
version: '0.16.0',
|
||||
macIcns: './www/img/icons/icon.icns',
|
||||
exeIco: './www/img/icons/icon.ico'
|
||||
macIcns: './www/img/icons/logo.icns',
|
||||
exeIco: './www/img/icons/logo.ico'
|
||||
},
|
||||
src: ['./package.json', './www/**/*']
|
||||
},
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ var templates = {
|
|||
'Package.appxmanifest': 'cordova/wp/',
|
||||
'.desktop': 'webkitbuilds/',
|
||||
'setup-win.iss': 'webkitbuilds/',
|
||||
'manifest.json': 'chrome-app/',
|
||||
'build-macos.sh': 'webkitbuilds/',
|
||||
// 'bower.json': '/',
|
||||
};
|
||||
var configDir = process.argv[2] || 'copay';
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
"winAppName": "BitPayWallet",
|
||||
"wpPublisherId": "{}",
|
||||
"wpProductId": "{}",
|
||||
"windowsAppId": "",
|
||||
"pushSenderId": "1036948132229",
|
||||
"description": "Secure Bitcoin Wallet",
|
||||
"version": "0.14.0",
|
||||
|
|
|
|||
BIN
app-template/bitpay/img/Background.png
Normal file
|
After Width: | Height: | Size: 201 KiB |
|
Before Width: | Height: | Size: 9.9 KiB |
BIN
app-template/bitpay/img/icons/128x128.png
Executable file
|
After Width: | Height: | Size: 8.1 KiB |
BIN
app-template/bitpay/img/icons/16x16.png
Executable file
|
After Width: | Height: | Size: 626 B |
BIN
app-template/bitpay/img/icons/24x24.png
Executable file
|
After Width: | Height: | Size: 921 B |
BIN
app-template/bitpay/img/icons/256x256.png
Executable file
|
After Width: | Height: | Size: 23 KiB |
BIN
app-template/bitpay/img/icons/32x32.png
Executable file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
app-template/bitpay/img/icons/48x48.png
Executable file
|
After Width: | Height: | Size: 2 KiB |
BIN
app-template/bitpay/img/icons/512x512.png
Executable file
|
After Width: | Height: | Size: 50 KiB |
BIN
app-template/bitpay/img/icons/64x64.png
Executable file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
app-template/bitpay/img/icons/96x96.png
Executable file
|
After Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
BIN
app-template/bitpay/img/icons/logo.icns
Normal file
BIN
app-template/bitpay/img/icons/logo.ico
Normal file
|
After Width: | Height: | Size: 274 KiB |
146
app-template/build-macos.sh
Executable file
|
|
@ -0,0 +1,146 @@
|
|||
#!/bin/bash
|
||||
|
||||
SHOULD_SIGN=$1
|
||||
if [ "$SHOULD_SIGN" ]
|
||||
then
|
||||
echo "Will sign the APP"
|
||||
fi
|
||||
|
||||
# by Andy Maloney
|
||||
# http://asmaloney.com/2013/07/howto/packaging-a-mac-os-x-application-using-a-dmg/
|
||||
|
||||
# make sure we are in the correct dir when we double-click a .command file
|
||||
dir=${0%/*}
|
||||
if [ -d "$dir" ]; then
|
||||
cd "$dir"
|
||||
fi
|
||||
|
||||
# set up your app name, architecture, and background image file name
|
||||
APP_NAME="*USERVISIBLENAME*"
|
||||
DMG_BACKGROUND_IMG="../www/img/Background.png"
|
||||
|
||||
PATH_NAME="${APP_NAME}/osx64/"
|
||||
# you should not need to change these
|
||||
APP_EXE="${PATH_NAME}${APP_NAME}.app/Contents/MacOS/nwjs"
|
||||
|
||||
VOL_NAME="${APP_NAME}-osx"
|
||||
DMG_TMP="${VOL_NAME}-temp.dmg"
|
||||
DMG_FINAL="${VOL_NAME}.dmg"
|
||||
STAGING_DIR="tmp"
|
||||
|
||||
# Check the background image DPI and convert it if it isn't 72x72
|
||||
_BACKGROUND_IMAGE_DPI_H=`sips -g dpiHeight ${DMG_BACKGROUND_IMG} | grep -Eo '[0-9]+\.[0-9]+'`
|
||||
_BACKGROUND_IMAGE_DPI_W=`sips -g dpiWidth ${DMG_BACKGROUND_IMG} | grep -Eo '[0-9]+\.[0-9]+'`
|
||||
|
||||
if [ $(echo " $_BACKGROUND_IMAGE_DPI_H != 72.0 " | bc) -eq 1 -o $(echo " $_BACKGROUND_IMAGE_DPI_W != 72.0 " | bc) -eq 1 ]; then
|
||||
echo "WARNING: The background image's DPI is not 72. This will result in distorted backgrounds on Mac OS X 10.7+."
|
||||
echo " I will convert it to 72 DPI for you."
|
||||
|
||||
_DMG_BACKGROUND_TMP="${DMG_BACKGROUND_IMG%.*}"_dpifix."${DMG_BACKGROUND_IMG##*.}"
|
||||
|
||||
sips -s dpiWidth 72 -s dpiHeight 72 ${DMG_BACKGROUND_IMG} --out ${_DMG_BACKGROUND_TMP}
|
||||
|
||||
DMG_BACKGROUND_IMG="${_DMG_BACKGROUND_TMP}"
|
||||
fi
|
||||
|
||||
# clear out any old data
|
||||
rm -rf "${STAGING_DIR}" "${DMG_TMP}" "${DMG_FINAL}"
|
||||
|
||||
# copy over the stuff we want in the final disk image to our staging dir
|
||||
mkdir -p "${STAGING_DIR}"
|
||||
cp -rpf "${PATH_NAME}${APP_NAME}.app" "${STAGING_DIR}"
|
||||
# ... cp anything else you want in the DMG - documentation, etc.
|
||||
|
||||
pushd "${STAGING_DIR}"
|
||||
|
||||
popd
|
||||
|
||||
# Fix size to 250MB
|
||||
SIZE=250
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error: Cannot compute size of staging dir"
|
||||
exit
|
||||
fi
|
||||
|
||||
# Sign Code (MATIAS)
|
||||
if [ $SHOULD_SIGN ]
|
||||
then
|
||||
echo "Signing ${APP_NAME} DMG"
|
||||
|
||||
export IDENTITY="3rd Party Mac Developer Application: BitPay, Inc. (884JRH5R93)"
|
||||
|
||||
# not need for 'out of app store' distribution (?)
|
||||
# export PARENT_PLIST=parent.plist
|
||||
# export CHILD_PLIST=child.plist
|
||||
export APP_PATH=${STAGING_DIR}/${APP_NAME}.app
|
||||
|
||||
codesign --deep -s "${IDENTITY}" $APP_PATH"/Contents/Versions/52.0.2743.82/nwjs Helper.app" && echo "Sign 1"
|
||||
codesign --deep -s "${IDENTITY}" $APP_PATH"/Contents/Versions/52.0.2743.82/nwjs Framework.framework/Resources/app_mode_loader.app" && echo "Sign 2"
|
||||
codesign --deep -s "${IDENTITY}" $APP_PATH && echo "Sign 3"
|
||||
echo "Signing Done"
|
||||
|
||||
fi
|
||||
|
||||
# create the temp DMG file
|
||||
hdiutil create -srcfolder "${STAGING_DIR}" -volname "${VOL_NAME}" -fs HFS+ \
|
||||
-fsargs "-c c=64,a=16,e=16" -format UDRW -megabytes ${SIZE} "${DMG_TMP}"
|
||||
|
||||
echo "Created DMG: ${DMG_TMP}"
|
||||
|
||||
# mount it and save the device
|
||||
DEVICE=$(hdiutil attach -readwrite -noverify "${DMG_TMP}" | \
|
||||
egrep '^/dev/' | sed 1q | awk '{print $1}')
|
||||
|
||||
sleep 2
|
||||
|
||||
# add a link to the Applications dir
|
||||
echo "Add link to /Applications"
|
||||
pushd /Volumes/"${VOL_NAME}"
|
||||
ln -s /Applications
|
||||
popd
|
||||
|
||||
# add a background image
|
||||
mkdir /Volumes/"${VOL_NAME}"/.background
|
||||
cp "${DMG_BACKGROUND_IMG}" /Volumes/"${VOL_NAME}"/.background/
|
||||
|
||||
# tell the Finder to resize the window, set the background,
|
||||
# change the icon size, place the icons in the right position, etc.
|
||||
echo '
|
||||
tell application "Finder"
|
||||
tell disk "'${VOL_NAME}'"
|
||||
open
|
||||
set current view of container window to icon view
|
||||
set toolbar visible of container window to false
|
||||
set statusbar visible of container window to false
|
||||
set the bounds of container window to {400, 100, 920, 440}
|
||||
set viewOptions to the icon view options of container window
|
||||
set arrangement of viewOptions to not arranged
|
||||
set icon size of viewOptions to 72
|
||||
set background picture of viewOptions to file ".background:'${DMG_BACKGROUND_IMG}'"
|
||||
set position of item "'${APP_NAME}'.app" of container window to {160, 205}
|
||||
set position of item "Applications" of container window to {360, 205}
|
||||
close
|
||||
open
|
||||
update without registering applications
|
||||
delay 2
|
||||
end tell
|
||||
end tell
|
||||
' | osascript
|
||||
|
||||
sync
|
||||
|
||||
# unmount it
|
||||
hdiutil detach "${DEVICE}"
|
||||
|
||||
# now make the final image a compressed disk image
|
||||
echo "Creating compressed image"
|
||||
hdiutil convert "${DMG_TMP}" -format UDZO -imagekey zlib-level=9 -o "${DMG_FINAL}"
|
||||
|
||||
# clean up
|
||||
rm -rf "${DMG_TMP}"
|
||||
rm -rf "${STAGING_DIR}"
|
||||
|
||||
echo 'Done.'
|
||||
|
||||
exit
|
||||
|
|
@ -18,6 +18,7 @@
|
|||
"winAppName": "CopayWallet",
|
||||
"wpPublisherId": "{31cdd08b-457c-413d-b440-f6665eec847d}",
|
||||
"wpProductId": "{5381aa50-9069-11e4-84cc-293caf9cbdc8}",
|
||||
"windowsAppId": "804636ee-b017-4cad-8719-e58ac97ffa5c",
|
||||
"pushSenderId": "1036948132229",
|
||||
"description": "A Secure Bitcoin Wallet",
|
||||
"version": "2.5.0",
|
||||
|
|
|
|||
BIN
app-template/copay/img/Background.png
Normal file
|
After Width: | Height: | Size: 201 KiB |
|
Before Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 6.3 KiB |
BIN
app-template/copay/img/icons/128x128.png
Executable file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
app-template/copay/img/icons/16x16.png
Executable file
|
After Width: | Height: | Size: 537 B |
BIN
app-template/copay/img/icons/24x24.png
Executable file
|
After Width: | Height: | Size: 808 B |
BIN
app-template/copay/img/icons/256x256.png
Executable file
|
After Width: | Height: | Size: 10 KiB |
BIN
app-template/copay/img/icons/32x32.png
Executable file
|
After Width: | Height: | Size: 1 KiB |
BIN
app-template/copay/img/icons/48x48.png
Executable file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
app-template/copay/img/icons/512x512.png
Executable file
|
After Width: | Height: | Size: 24 KiB |
BIN
app-template/copay/img/icons/64x64.png
Executable file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
app-template/copay/img/icons/96x96.png
Executable file
|
After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
BIN
app-template/copay/img/icons/logo.icns
Normal file
BIN
app-template/copay/img/icons/logo.ico
Normal file
|
After Width: | Height: | Size: 270 KiB |
|
|
@ -14,7 +14,7 @@
|
|||
"main": "www/index.html",
|
||||
"window": {
|
||||
"title": "*USERVISIBLENAME* - *PURPOSELINE*",
|
||||
"icon": "www/img/icon-128.png",
|
||||
"icon": "www/img/icons/logo.ico",
|
||||
"toolbar": false,
|
||||
"show": true,
|
||||
"visible": true,
|
||||
|
|
|
|||
|
|
@ -5,10 +5,11 @@
|
|||
#define MyAppVersion "*VERSION*"
|
||||
#define MyAppPublisher "BitPay"
|
||||
#define MyAppURL "*URL*"
|
||||
#define MyAppExeName "*PACKAGENAME.exe"
|
||||
#define MyAppExeName "*PACKAGENAME*.exe"
|
||||
#define AppId "*WINDOWSAPPID*"
|
||||
|
||||
[Setup]
|
||||
AppId={804636ee-b017-4cad-8719-e58ac97ffa5c}
|
||||
AppId={#AppId}
|
||||
AppName={#MyAppName}
|
||||
AppVersion={#MyAppVersion}
|
||||
;AppVerName={#MyAppName} {#MyAppVersion}
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 148 B |
|
Before Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 643 B |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
|
|
@ -8,7 +8,7 @@
|
|||
<meta name="format-detection" content="telephone=no">
|
||||
<link rel="stylesheet" type="text/css" href="css/copay.css">
|
||||
<title>{{appConfig.nameCase}} - {{appConfig.description}}</title>
|
||||
<link rel="shortcut icon" href="img/favicon.ico">
|
||||
<link rel="shortcut icon" href="img/icons/favicon.ico">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
|
|
|||