build(all): update build to use new variables in app config
This commit is contained in:
parent
521e5f3618
commit
d1b2f6adb1
12 changed files with 43 additions and 44 deletions
|
|
@ -1,9 +1,9 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Version=*VERSION*
|
Version=*VERSION*
|
||||||
Name=*NAMECASENOSPACE*
|
Name=*USERVISIBLENAME*
|
||||||
Comment=*DESCRIPTION*
|
Comment=*PURPOSELINE*
|
||||||
Exec=*NAMENOSPACE*
|
Exec=*PACKAGENAME*
|
||||||
Icon=icon-256.png
|
Icon=icon-256.png
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Categories=Finance
|
Categories=Finance
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ clean:
|
||||||
|
|
||||||
|
|
||||||
$(WORKDIR)android $(WORKDIR)ios: config.xml
|
$(WORKDIR)android $(WORKDIR)ios: config.xml
|
||||||
cordova create $@ com.bitpay.*NAMENOSPACE* '*NAMECASENOSPACE*' || echo "Project Path Existed"
|
cordova create $@ com.bitpay.*BUNDLENAME* "*USERVISIBLENAME*" || echo "Project Path Existed"
|
||||||
cp ProjectMakefile $@/Makefile
|
cp ProjectMakefile $@/Makefile
|
||||||
rm -r $@/www && ln -sF ../../public $@/www
|
rm -r $@/www && ln -sF ../../public $@/www
|
||||||
cp config.xml $@/config.xml
|
cp config.xml $@/config.xml
|
||||||
|
|
@ -28,7 +28,7 @@ android: project-android
|
||||||
make -C $(WORKDIR)android build-android
|
make -C $(WORKDIR)android build-android
|
||||||
|
|
||||||
wp-init: config.xml
|
wp-init: config.xml
|
||||||
cordova create $(WORKDIR)$@ com.bitpay.*NAMENOSPACE* *NAMECASENOSPACE* || echo "Project Path Existed"
|
cordova create $(WORKDIR)$@ com.bitpay.*BUNDLENAME* "*USERVISIBLENAME*" || echo "Project Path Existed"
|
||||||
cp ProjectMakefile $(WORKDIR)$@/Makefile
|
cp ProjectMakefile $(WORKDIR)$@/Makefile
|
||||||
mkdir -p $(WORKDIR)$@/www
|
mkdir -p $(WORKDIR)$@/www
|
||||||
cp -Rf ../public/* $(WORKDIR)$@/www
|
cp -Rf ../public/* $(WORKDIR)$@/www
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
.PHONY:plugins ios-platform android-platform wp8-platform
|
.PHONY:plugins ios-platform android-platform wp8-platform
|
||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
cordova plugin add https://github.com/cmgustavo/Custom-URL-scheme.git --variable URL_SCHEME=bitcoin --variable SECOND_URL_SCHEME=*NAMENOSPACE*
|
cordova plugin add https://github.com/cmgustavo/Custom-URL-scheme.git --variable URL_SCHEME=bitcoin --variable SECOND_URL_SCHEME=*APPURI*
|
||||||
cordova prepare
|
cordova prepare
|
||||||
rm -rf platforms/android/res/values-es
|
rm -rf platforms/android/res/values-es
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
<Language code="pl" />
|
<Language code="pl" />
|
||||||
<Language code="cs" />
|
<Language code="cs" />
|
||||||
</Languages>
|
</Languages>
|
||||||
<App Author="Bitpay Inc." BitsPerPixel="32" Description="*DESCRIPTION*" Genre="apps.normal" ProductID="*WPPRODUCTID*" Publisher="*APPDESCRIPTION*" PublisherID="*WPPUBLISHERID*" RuntimeType="Silverlight" Title="*APPDESCRIPTION*" Version="*VERSION*.0" xmlns="" NotificationService="MPN">
|
<App Author="Bitpay Inc." BitsPerPixel="32" Description="*DESCRIPTION*" Genre="apps.normal" ProductID="*WPPRODUCTID*" Publisher="*APPDESCRIPTION*" PublisherID="*WPPUBLISHERID*" RuntimeType="Silverlight" Title="*PURPOSELINE*" Version="*VERSION*.0" xmlns="" NotificationService="MPN">
|
||||||
<IconPath IsRelative="true" IsResource="false">Assets\icon@2.png</IconPath>
|
<IconPath IsRelative="true" IsResource="false">Assets\icon@2.png</IconPath>
|
||||||
<Capabilities>
|
<Capabilities>
|
||||||
<Capability Name="ID_CAP_WEBBROWSERCOMPONENT" />
|
<Capability Name="ID_CAP_WEBBROWSERCOMPONENT" />
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@
|
||||||
version="*VERSION*"
|
version="*VERSION*"
|
||||||
android-versionCode="*ANDROIDVERSION*"
|
android-versionCode="*ANDROIDVERSION*"
|
||||||
ios-CFBundleVersion="*VERSION*">
|
ios-CFBundleVersion="*VERSION*">
|
||||||
<name>*NAMECASENOSPACE*</name>
|
<name>*USERVISIBLENAME*</name>
|
||||||
<description>
|
<description>
|
||||||
*APPDESCRIPTION*
|
*PURPOSELINE*
|
||||||
</description>
|
</description>
|
||||||
<author email="support@bitpay.com" href="*URL*">
|
<author email="support@bitpay.com" href="*URL*">
|
||||||
BitPay Inc.
|
BitPay Inc.
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "*NAMECASENOSPACE*",
|
"name": "*PACKAGENAME*",
|
||||||
"description": "*DESCRIPTION*",
|
"description": "*PACKAGEDESCRIPTION*",
|
||||||
"version": "*VERSION*",
|
"version": "*VERSION*",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"storage",
|
"storage",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "*NAMENOSPACE*",
|
"name": "*PACKAGENAME*",
|
||||||
"description": "*DESCRIPTION*",
|
"description": "*DESCRIPTION*",
|
||||||
"author": "BitPay",
|
"author": "BitPay",
|
||||||
"version": "*VERSION*",
|
"version": "*VERSION*",
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
],
|
],
|
||||||
"main": "public/index.html",
|
"main": "public/index.html",
|
||||||
"window": {
|
"window": {
|
||||||
"title": "*NAMECASE* - *DESCRIPTION*",
|
"title": "*USERVISIBLENAME* - *PURPOSELINE*",
|
||||||
"icon": "./public/img/icons/icon-256.png",
|
"icon": "./public/img/icons/icon-256.png",
|
||||||
"toolbar": false,
|
"toolbar": false,
|
||||||
"show": true,
|
"show": true,
|
||||||
|
|
@ -95,7 +95,7 @@
|
||||||
"test": "./node_modules/.bin/grunt test-coveralls",
|
"test": "./node_modules/.bin/grunt test-coveralls",
|
||||||
"clean": "git clean -dfx",
|
"clean": "git clean -dfx",
|
||||||
"start:ios": "npm run build && cd cordova && trash project-ios && make ios && open project-ios/platforms/ios/BitPay\\ Wallet.xcodeproj",
|
"start:ios": "npm run build && cd cordova && trash project-ios && make ios && open project-ios/platforms/ios/BitPay\\ Wallet.xcodeproj",
|
||||||
"start:android": "npm run build && cd cordova && trash project-android && make android"
|
"start:android": "npm run build && cd cordova && trash project-android && make android && open -a /Applications/Android\\ Studio.app project-android/platforms/android"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"trash-cli": "^1.4.0"
|
"trash-cli": "^1.4.0"
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
; Script generated by the Inno Setup Script Wizard.
|
; Script generated by the Inno Setup Script Wizard.
|
||||||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||||||
|
|
||||||
#define MyAppName "*NAMENOSPACE*"
|
#define MyAppName "*USERVISIBLENAME*"
|
||||||
#define MyAppVersion "*VERSION*"
|
#define MyAppVersion "*VERSION*"
|
||||||
#define MyAppPublisher "BitPay"
|
#define MyAppPublisher "BitPay"
|
||||||
#define MyAppURL "*URL*"
|
#define MyAppURL "*URL*"
|
||||||
#define MyAppExeName "*NAMECASENOSPACE.exe"
|
#define MyAppExeName "*PACKAGENAME.exe"
|
||||||
|
|
||||||
[Setup]
|
[Setup]
|
||||||
AppId={{804636ee-b017-4cad-8719-e58ac97ffa5c}
|
AppId={{804636ee-b017-4cad-8719-e58ac97ffa5c}
|
||||||
|
|
@ -18,7 +18,7 @@ AppSupportURL={#MyAppURL}
|
||||||
AppUpdatesURL={#MyAppURL}
|
AppUpdatesURL={#MyAppURL}
|
||||||
DefaultDirName={pf}\{#MyAppName}
|
DefaultDirName={pf}\{#MyAppName}
|
||||||
DefaultGroupName={#MyAppName}
|
DefaultGroupName={#MyAppName}
|
||||||
OutputBaseFilename=*NAMECASENOSPACE*-win
|
OutputBaseFilename=*PACKAGENAME*-win
|
||||||
OutputDir=./
|
OutputDir=./
|
||||||
Compression=lzma
|
Compression=lzma
|
||||||
SolidCompression=yes
|
SolidCompression=yes
|
||||||
|
|
@ -32,8 +32,8 @@ Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
|
||||||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||||
|
|
||||||
[Files]
|
[Files]
|
||||||
Source: "*NAMECASENOSPACE*\win64\*NAMENOSPACE*.exe"; DestDir: "{app}"; Flags: ignoreversion
|
Source: "*PACKAGENAME*\win64\*PACKAGENAME*.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
Source: "*NAMECASENOSPACE*\win64\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
Source: "*PACKAGENAME*\win64\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||||
Source: "../public/img/icons/favicon.ico"; DestDir: "{app}"; DestName: "icon.ico"; Flags: ignoreversion
|
Source: "../public/img/icons/favicon.ico"; DestDir: "{app}"; DestName: "icon.ico"; Flags: ignoreversion
|
||||||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||||||
|
|
||||||
|
|
@ -50,8 +50,7 @@ Root: HKCR; Subkey: "bitcoin"; ValueType: "string"; ValueName: "URL Protocol"; V
|
||||||
Root: HKCR; Subkey: "bitcoin\DefaultIcon"; ValueType: "string"; ValueData: "{app}\{#MyAppExeName},0"
|
Root: HKCR; Subkey: "bitcoin\DefaultIcon"; ValueType: "string"; ValueData: "{app}\{#MyAppExeName},0"
|
||||||
Root: HKCR; Subkey: "bitcoin\shell\open\command"; ValueType: "string"; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
|
Root: HKCR; Subkey: "bitcoin\shell\open\command"; ValueType: "string"; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
|
||||||
|
|
||||||
Root: HKCR; Subkey: "*NAMENOSPACE*"; ValueType: "string"; ValueData: "URL:*NAMECASENOSPACE* Custom Protocol"; Flags: uninsdeletekey
|
Root: HKCR; Subkey: "*APPURI*"; ValueType: "string"; ValueData: "URL:*USERVISIBLENAME* Custom Protocol"; Flags: uninsdeletekey
|
||||||
Root: HKCR; Subkey: "*NAMENOSPACE*"; ValueType: "string"; ValueName: "URL Protocol"; ValueData: ""
|
Root: HKCR; Subkey: "*APPURI*"; ValueType: "string"; ValueName: "URL Protocol"; ValueData: ""
|
||||||
Root: HKCR; Subkey: "*NAMENOSPACE*\DefaultIcon"; ValueType: "string"; ValueData: "{app}\{#MyAppExeName},0"
|
Root: HKCR; Subkey: "*APPURI*\DefaultIcon"; ValueType: "string"; ValueData: "{app}\{#MyAppExeName},0"
|
||||||
Root: HKCR; Subkey: "*NAMENOSPACE*\shell\open\command"; ValueType: "string"; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
|
Root: HKCR; Subkey: "*APPURI*\shell\open\command"; ValueType: "string"; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@
|
||||||
"//":" Modify it at app-template/",
|
"//":" Modify it at app-template/",
|
||||||
|
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "BitPay Wallet",
|
"name": "bitpay-wallet",
|
||||||
"description": "Secure Bitcoin Storage",
|
"description": "Secure Bitcoin Storage",
|
||||||
"version": "0.6.0",
|
"version": "0.14.0",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"storage",
|
"storage",
|
||||||
"unlimitedStorage",
|
"unlimitedStorage",
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,10 @@
|
||||||
"//":"PLEASE! Do not edit this file directly",
|
"//":"PLEASE! Do not edit this file directly",
|
||||||
"//":" Modify it at app-template/",
|
"//":" Modify it at app-template/",
|
||||||
|
|
||||||
"name": "wallet",
|
"name": "bitpay-wallet",
|
||||||
"description": "Secure Bitcoin Storage",
|
"description": "Secure Bitcoin Storage",
|
||||||
"author": "BitPay",
|
"author": "BitPay",
|
||||||
"version": "0.6.0",
|
"version": "0.14.0",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"bitcoin",
|
"bitcoin",
|
||||||
"wallet",
|
"wallet",
|
||||||
|
|
@ -97,7 +97,8 @@
|
||||||
"watch": "grunt watch",
|
"watch": "grunt watch",
|
||||||
"test": "./node_modules/.bin/grunt test-coveralls",
|
"test": "./node_modules/.bin/grunt test-coveralls",
|
||||||
"clean": "git clean -dfx",
|
"clean": "git clean -dfx",
|
||||||
"start:ios": "npm run build && cd cordova && trash project-ios && make ios && open project-ios/platforms/ios/BitPay\\ Wallet.xcodeproj"
|
"start:ios": "npm run build && cd cordova && trash project-ios && make ios && open project-ios/platforms/ios/BitPay\\ Wallet.xcodeproj",
|
||||||
|
"start:android": "npm run build && cd cordova && trash project-android && make android && open -a /Applications/Android\\ Studio.app project-android/platforms/android"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"trash-cli": "^1.4.0"
|
"trash-cli": "^1.4.0"
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Version=0.6.0
|
Version=0.14.0
|
||||||
Name=BitPay Wallet
|
Name=BitPay Wallet
|
||||||
Comment=Secure Bitcoin Storage
|
Comment=Secure Bitcoin Storage
|
||||||
Exec=wallet
|
Exec=bitpay-wallet
|
||||||
Icon=icon-256.png
|
Icon=icon-256.png
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Categories=Finance
|
Categories=Finance
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
; Script generated by the Inno Setup Script Wizard.
|
; Script generated by the Inno Setup Script Wizard.
|
||||||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||||||
|
|
||||||
#define MyAppName "wallet"
|
#define MyAppName "BitPay Wallet"
|
||||||
#define MyAppVersion "0.6.0"
|
#define MyAppVersion "0.14.0"
|
||||||
#define MyAppPublisher "BitPay"
|
#define MyAppPublisher "BitPay"
|
||||||
#define MyAppURL "https://bitpay.com"
|
#define MyAppURL "https://bitpay.com"
|
||||||
#define MyAppExeName "*NAMECASENOSPACE.exe"
|
#define MyAppExeName "*PACKAGENAME.exe"
|
||||||
|
|
||||||
[Setup]
|
[Setup]
|
||||||
AppId={{804636ee-b017-4cad-8719-e58ac97ffa5c}
|
AppId={{804636ee-b017-4cad-8719-e58ac97ffa5c}
|
||||||
|
|
@ -18,7 +18,7 @@ AppSupportURL={#MyAppURL}
|
||||||
AppUpdatesURL={#MyAppURL}
|
AppUpdatesURL={#MyAppURL}
|
||||||
DefaultDirName={pf}\{#MyAppName}
|
DefaultDirName={pf}\{#MyAppName}
|
||||||
DefaultGroupName={#MyAppName}
|
DefaultGroupName={#MyAppName}
|
||||||
OutputBaseFilename=BitPay Wallet-win
|
OutputBaseFilename=bitpay-wallet-win
|
||||||
OutputDir=./
|
OutputDir=./
|
||||||
Compression=lzma
|
Compression=lzma
|
||||||
SolidCompression=yes
|
SolidCompression=yes
|
||||||
|
|
@ -32,8 +32,8 @@ Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
|
||||||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||||
|
|
||||||
[Files]
|
[Files]
|
||||||
Source: "BitPay Wallet\win64\wallet.exe"; DestDir: "{app}"; Flags: ignoreversion
|
Source: "bitpay-wallet\win64\bitpay-wallet.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
Source: "BitPay Wallet\win64\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
Source: "bitpay-wallet\win64\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||||
Source: "../public/img/icons/favicon.ico"; DestDir: "{app}"; DestName: "icon.ico"; Flags: ignoreversion
|
Source: "../public/img/icons/favicon.ico"; DestDir: "{app}"; DestName: "icon.ico"; Flags: ignoreversion
|
||||||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||||||
|
|
||||||
|
|
@ -50,8 +50,7 @@ Root: HKCR; Subkey: "bitcoin"; ValueType: "string"; ValueName: "URL Protocol"; V
|
||||||
Root: HKCR; Subkey: "bitcoin\DefaultIcon"; ValueType: "string"; ValueData: "{app}\{#MyAppExeName},0"
|
Root: HKCR; Subkey: "bitcoin\DefaultIcon"; ValueType: "string"; ValueData: "{app}\{#MyAppExeName},0"
|
||||||
Root: HKCR; Subkey: "bitcoin\shell\open\command"; ValueType: "string"; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
|
Root: HKCR; Subkey: "bitcoin\shell\open\command"; ValueType: "string"; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
|
||||||
|
|
||||||
Root: HKCR; Subkey: "wallet"; ValueType: "string"; ValueData: "URL:BitPay Wallet Custom Protocol"; Flags: uninsdeletekey
|
Root: HKCR; Subkey: "bitpay-wallet"; ValueType: "string"; ValueData: "URL:BitPay Wallet Custom Protocol"; Flags: uninsdeletekey
|
||||||
Root: HKCR; Subkey: "wallet"; ValueType: "string"; ValueName: "URL Protocol"; ValueData: ""
|
Root: HKCR; Subkey: "bitpay-wallet"; ValueType: "string"; ValueName: "URL Protocol"; ValueData: ""
|
||||||
Root: HKCR; Subkey: "wallet\DefaultIcon"; ValueType: "string"; ValueData: "{app}\{#MyAppExeName},0"
|
Root: HKCR; Subkey: "bitpay-wallet\DefaultIcon"; ValueType: "string"; ValueData: "{app}\{#MyAppExeName},0"
|
||||||
Root: HKCR; Subkey: "wallet\shell\open\command"; ValueType: "string"; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
|
Root: HKCR; Subkey: "bitpay-wallet\shell\open\command"; ValueType: "string"; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue