Auto updates config files with the new version (#4112)
* Auto updates config files with the new version * Use current version of node-webkit
This commit is contained in:
parent
cab093881e
commit
85716f72f3
7 changed files with 246 additions and 0 deletions
22
Gruntfile.js
22
Gruntfile.js
|
|
@ -3,6 +3,26 @@ module.exports = function(grunt) {
|
||||||
// Project Configuration
|
// Project Configuration
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
pkg: grunt.file.readJSON('package.json'),
|
pkg: grunt.file.readJSON('package.json'),
|
||||||
|
'string-replace': {
|
||||||
|
dist: {
|
||||||
|
files: {
|
||||||
|
'cordova/config.xml': ['config-templates/config.xml'],
|
||||||
|
'cordova/wp/Package.appxmanifest': ['config-templates/Package.appxmanifest'],
|
||||||
|
'cordova/wp/Properties/WMAppManifest.xml': ['config-templates/WMAppManifest.xml'],
|
||||||
|
'webkitbuilds/.desktop': ['config-templates/.desktop'],
|
||||||
|
'webkitbuilds/setup-win.iss': ['config-templates/setup-win.iss']
|
||||||
|
},
|
||||||
|
options: {
|
||||||
|
replacements: [{
|
||||||
|
pattern: /%APP-VERSION%/g,
|
||||||
|
replacement: '<%= pkg.version %>'
|
||||||
|
}, {
|
||||||
|
pattern: /%ANDROID-VERSION-CODE%/g,
|
||||||
|
replacement: '<%= pkg.androidVersionCode %>'
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
exec: {
|
exec: {
|
||||||
version: {
|
version: {
|
||||||
command: 'node ./util/version.js'
|
command: 'node ./util/version.js'
|
||||||
|
|
@ -212,6 +232,7 @@ module.exports = function(grunt) {
|
||||||
grunt.loadNpmTasks('grunt-karma-coveralls');
|
grunt.loadNpmTasks('grunt-karma-coveralls');
|
||||||
grunt.loadNpmTasks('grunt-node-webkit-builder');
|
grunt.loadNpmTasks('grunt-node-webkit-builder');
|
||||||
grunt.loadNpmTasks('grunt-contrib-compress');
|
grunt.loadNpmTasks('grunt-contrib-compress');
|
||||||
|
grunt.loadNpmTasks('grunt-string-replace');
|
||||||
|
|
||||||
grunt.registerTask('default', ['nggettext_compile', 'exec:version', 'exec:coinbase', 'browserify', 'concat', 'copy:icons']);
|
grunt.registerTask('default', ['nggettext_compile', 'exec:version', 'exec:coinbase', 'browserify', 'concat', 'copy:icons']);
|
||||||
grunt.registerTask('prod', ['default', 'uglify']);
|
grunt.registerTask('prod', ['default', 'uglify']);
|
||||||
|
|
@ -220,4 +241,5 @@ module.exports = function(grunt) {
|
||||||
grunt.registerTask('test-coveralls', ['karma:prod', 'coveralls']);
|
grunt.registerTask('test-coveralls', ['karma:prod', 'coveralls']);
|
||||||
grunt.registerTask('desktop', ['prod', 'nodewebkit', 'copy:linux', 'compress:linux']);
|
grunt.registerTask('desktop', ['prod', 'nodewebkit', 'copy:linux', 'compress:linux']);
|
||||||
grunt.registerTask('osx', ['prod', 'nodewebkit', 'exec:osx']);
|
grunt.registerTask('osx', ['prod', 'nodewebkit', 'exec:osx']);
|
||||||
|
grunt.registerTask('release', ['string-replace:dist']);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
12
config-templates/.desktop
Normal file
12
config-templates/.desktop
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Version=%APP-VERSION%
|
||||||
|
Name=Copay
|
||||||
|
Comment=A multisignature wallet
|
||||||
|
Exec=copay
|
||||||
|
Icon=icon-256.png
|
||||||
|
Terminal=false
|
||||||
|
Categories=Finance
|
||||||
|
X-Ubuntu-Touch=true
|
||||||
|
X-Ubuntu-StageHint=SideStage
|
||||||
|
|
||||||
41
config-templates/Package.appxmanifest
Normal file
41
config-templates/Package.appxmanifest
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest" xmlns:m3="http://schemas.microsoft.com/appx/2014/manifest" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest">
|
||||||
|
<Identity Name="18C7659D.CopayWallet" Publisher="CN=F89609D1-EB3E-45FD-A58A-C2E3895FCE7B" Version="%APP-VERSION%.0" />
|
||||||
|
<mp:PhoneIdentity PhoneProductId="5381aa50-9069-11e4-84cc-293caf9cbdc8" PhonePublisherId="F89609D1-EB3E-45FD-A58A-C2E3895FCE7B" />
|
||||||
|
<Properties>
|
||||||
|
<DisplayName>Copay Bitcoin Wallet</DisplayName>
|
||||||
|
<PublisherDisplayName>BitPay Inc.</PublisherDisplayName>
|
||||||
|
<Logo>Assets\StoreLogo.png</Logo>
|
||||||
|
</Properties>
|
||||||
|
<Prerequisites>
|
||||||
|
<OSMinVersion>6.3.1</OSMinVersion>
|
||||||
|
<OSMaxVersionTested>6.3.1</OSMaxVersionTested>
|
||||||
|
</Prerequisites>
|
||||||
|
<Resources>
|
||||||
|
<Resource Language="x-generate" />
|
||||||
|
</Resources>
|
||||||
|
<Applications>
|
||||||
|
<Application Id="x5381aa50y9069y11e4y84ccy293caf9cbdc8x" Executable="AGHost.exe" EntryPoint="MainPage.xaml">
|
||||||
|
<m3:VisualElements DisplayName="Copay Bitcoin Wallet" Square150x150Logo="Assets\SquareTile150x150.png" Square44x44Logo="Assets\Logo.png" Description="A multisignature Bitcoin Wallet" ForegroundText="light" BackgroundColor="#464646">
|
||||||
|
<m3:DefaultTile Square71x71Logo="Assets\SquareTile71x71.png">
|
||||||
|
</m3:DefaultTile>
|
||||||
|
<m3:SplashScreen Image="SplashScreenImage.jpg" />
|
||||||
|
</m3:VisualElements>
|
||||||
|
<Extensions>
|
||||||
|
<Extension Category="windows.backgroundTasks" EntryPoint="AgHost.BackgroundTask">
|
||||||
|
<BackgroundTasks>
|
||||||
|
<Task Type="systemEvent" />
|
||||||
|
</BackgroundTasks>
|
||||||
|
</Extension>
|
||||||
|
</Extensions>
|
||||||
|
</Application>
|
||||||
|
</Applications>
|
||||||
|
<Extensions>
|
||||||
|
<Extension Category="windows.activatableClass.inProcessServer">
|
||||||
|
<InProcessServer>
|
||||||
|
<Path>AgHostSvcs.dll</Path>
|
||||||
|
<ActivatableClass ActivatableClassId="AgHost.BackgroundTask" ThreadingModel="both" />
|
||||||
|
</InProcessServer>
|
||||||
|
</Extension>
|
||||||
|
</Extensions>
|
||||||
|
</Package>
|
||||||
49
config-templates/WMAppManifest.xml
Normal file
49
config-templates/WMAppManifest.xml
Normal file
|
|
@ -0,0 +1,49 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Deployment AppPlatformVersion="8.1" xmlns="http://schemas.microsoft.com/windowsphone/2014/deployment">
|
||||||
|
<DefaultLanguage code="en-US" xmlns="" />
|
||||||
|
<Languages xmlns="">
|
||||||
|
<Language code="en-US" />
|
||||||
|
<Language code="fr" />
|
||||||
|
<Language code="de" />
|
||||||
|
<Language code="ja" />
|
||||||
|
<Language code="es" />
|
||||||
|
<Language code="ru" />
|
||||||
|
<Language code="pl" />
|
||||||
|
<Language code="cs" />
|
||||||
|
</Languages>
|
||||||
|
<App Author="Bitpay Inc." BitsPerPixel="32" Description="A multisignature Bitcoin Wallet" Genre="apps.normal" ProductID="{5381aa50-9069-11e4-84cc-293caf9cbdc8}" Publisher="Copay Bitcoin Wallet" PublisherID="{31cdd08b-457c-413d-b440-f6665eec847d}" RuntimeType="Silverlight" Title="Copay Bitcoin Wallet" Version="%APP-VERSION%.0" xmlns="" NotificationService="MPN">
|
||||||
|
<IconPath IsRelative="true" IsResource="false">Assets\icon@2.png</IconPath>
|
||||||
|
<Capabilities>
|
||||||
|
<Capability Name="ID_CAP_WEBBROWSERCOMPONENT" />
|
||||||
|
<Capability Name="ID_CAP_NETWORKING" />
|
||||||
|
<Capability Name="ID_CAP_ISV_CAMERA" />
|
||||||
|
<Capability Name="ID_CAP_IDENTITY_DEVICE" />
|
||||||
|
</Capabilities>
|
||||||
|
<Tasks>
|
||||||
|
<DefaultTask Name="_default" NavigationPage="MainPage.xaml" />
|
||||||
|
</Tasks>
|
||||||
|
<Tokens>
|
||||||
|
<PrimaryToken TaskName="_default" TokenID="CopayToken">
|
||||||
|
<TemplateFlip>
|
||||||
|
<SmallImageURI IsRelative="true" IsResource="false">Assets\200x200@1.png</SmallImageURI>
|
||||||
|
<Count>0</Count>
|
||||||
|
<BackgroundImageURI IsRelative="true" IsResource="false">Assets\200x200@2.png</BackgroundImageURI>
|
||||||
|
<Title>Copay Bitcoin Wallet</Title>
|
||||||
|
<BackContent />
|
||||||
|
<BackBackgroundImageURI />
|
||||||
|
<BackTitle />
|
||||||
|
<LargeBackgroundImageURI />
|
||||||
|
<LargeBackContent />
|
||||||
|
<LargeBackBackgroundImageURI />
|
||||||
|
<DeviceLockImageURI />
|
||||||
|
<HasLarge>false</HasLarge>
|
||||||
|
</TemplateFlip>
|
||||||
|
</PrimaryToken>
|
||||||
|
</Tokens>
|
||||||
|
<ScreenResolutions>
|
||||||
|
<ScreenResolution Name="ID_RESOLUTION_WVGA" />
|
||||||
|
<ScreenResolution Name="ID_RESOLUTION_WXGA" />
|
||||||
|
<ScreenResolution Name="ID_RESOLUTION_HD720P" />
|
||||||
|
</ScreenResolutions>
|
||||||
|
</App>
|
||||||
|
</Deployment>
|
||||||
73
config-templates/config.xml
Normal file
73
config-templates/config.xml
Normal file
|
|
@ -0,0 +1,73 @@
|
||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<widget id="com.bitpay.copay"
|
||||||
|
version="%APP-VERSION%"
|
||||||
|
android-versionCode="%ANDROID-VERSION-CODE%"
|
||||||
|
ios-CFBundleVersion="%APP-VERSION%">
|
||||||
|
<name>Copay</name>
|
||||||
|
<description>
|
||||||
|
A secure bitcoin wallet for friends and companies.
|
||||||
|
</description>
|
||||||
|
<author email="support@bitpay.com" href="https://copay.io">
|
||||||
|
BitPay Inc.
|
||||||
|
</author>
|
||||||
|
<content src="index.html" />
|
||||||
|
<access origin="*" />
|
||||||
|
<preference name="AndroidPersistentFileLocation" value="Internal" />
|
||||||
|
<preference name="iosPersistentFileLocation" value="Library" />
|
||||||
|
<preference name="DisallowOverscroll" value="true"/>
|
||||||
|
<preference name="HideKeyboardFormAccessoryBar" value="true"/>
|
||||||
|
<preference name="SplashScreen" value="copayscreen" />
|
||||||
|
<preference name="ShowSplashScreenSpinner" value="false" />
|
||||||
|
<preference name="AutoHideSplashScreen" value="false" />
|
||||||
|
<preference name="FadeSplashScreen" value="true" />
|
||||||
|
<preference name="FadeSplashScreenDuration" value="1" />
|
||||||
|
<preference name="BackgroundColor" value="#2C3E50" />
|
||||||
|
<preference name="StatusBarOverlaysWebView" value="false" />
|
||||||
|
<preference name="StatusBarBackgroundColor" value="#2C3E50" />
|
||||||
|
<preference name="StatusBarStyle" value="lightcontent" />
|
||||||
|
<preference name="BackupWebStorage" value="none"/>
|
||||||
|
<preference name="windows-target-version" value="8.1"/>
|
||||||
|
<preference name="Orientation" value="portrait" />
|
||||||
|
|
||||||
|
<platform name="ios">
|
||||||
|
<!-- iOS 8.0+ -->
|
||||||
|
<!-- iPad Pro -->
|
||||||
|
<icon src="../ios/icons/icon-83.5@2x.png" width="167" height="167" />
|
||||||
|
<!-- iPhone 6 Plus -->
|
||||||
|
<icon src="../ios/icons/icon-60@3x.png" width="180" height="180" />
|
||||||
|
<!-- iOS 7.0+ -->
|
||||||
|
<!-- iPhone / iPod Touch -->
|
||||||
|
<icon src="../ios/icons/icon-60@2x.png" width="120" height="120" />
|
||||||
|
<!-- iPad -->
|
||||||
|
<icon src="../ios/icons/icon-76.png" width="76" height="76" />
|
||||||
|
<icon src="../ios/icons/icon-76@2x.png" width="152" height="152" />
|
||||||
|
<!-- iOS 6.1 -->
|
||||||
|
<!-- Spotlight Icon -->
|
||||||
|
<icon src="../ios/icons/icon-40.png" width="40" height="40" />
|
||||||
|
<icon src="../ios/icons/icon-40@2x.png" width="80" height="80" />
|
||||||
|
<!-- iPhone / iPod Touch -->
|
||||||
|
<icon src="../ios/icons/icon.png" width="57" height="57" />
|
||||||
|
<icon src="../ios/icons/icon@2x.png" width="114" height="114" />
|
||||||
|
<!-- iPad -->
|
||||||
|
<icon src="../ios/icons/icon-72.png" width="72" height="72" />
|
||||||
|
<icon src="../ios/icons/icon-72@2x.png" width="144" height="144" />
|
||||||
|
<!-- iPhone Spotlight and Settings Icon -->
|
||||||
|
<icon src="../ios/icons/icon-small.png" width="29" height="29" />
|
||||||
|
<icon src="../ios/icons/icon-small@2x.png" width="58" height="58" />
|
||||||
|
<icon src="../ios/icons/icon-small@3x.png" width="87" height="87" />
|
||||||
|
<!-- iPad Spotlight and Settings Icon -->
|
||||||
|
<icon src="../ios/icons/icon-50.png" width="50" height="50" />
|
||||||
|
<icon src="../ios/icons/icon-50@2x.png" width="100" height="100" />
|
||||||
|
|
||||||
|
<!-- Splash -->
|
||||||
|
<splash src="../ios/splash/Default~iphone.png" width="320" height="480"/>
|
||||||
|
<splash src="../ios/splash/Default@2x~iphone.png" width="640" height="960"/>
|
||||||
|
<splash src="../ios/splash/Default-Portrait~ipad.png" width="768" height="1024"/>
|
||||||
|
<splash src="../ios/splash/Default-Portrait@2x~ipad.png" width="1536" height="2048"/>
|
||||||
|
<splash src="../ios/splash/Default-568h@2x~iphone.png" width="640" height="1136"/>
|
||||||
|
<splash src="../ios/splash/Default-667h.png" width="750" height="1334"/>
|
||||||
|
<splash src="../ios/splash/Default-736h.png" width="1242" height="2208"/>
|
||||||
|
</platform>
|
||||||
|
</widget>
|
||||||
|
|
||||||
|
|
||||||
47
config-templates/setup-win.iss
Executable file
47
config-templates/setup-win.iss
Executable file
|
|
@ -0,0 +1,47 @@
|
||||||
|
; Script generated by the Inno Setup Script Wizard.
|
||||||
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||||||
|
|
||||||
|
#define MyAppName "Copay"
|
||||||
|
#define MyAppVersion "%APP-VERSION%"
|
||||||
|
#define MyAppPublisher "BitPay"
|
||||||
|
#define MyAppURL "https://copay.io"
|
||||||
|
#define MyAppExeName "Copay.exe"
|
||||||
|
|
||||||
|
[Setup]
|
||||||
|
AppId={{804636ee-b017-4cad-8719-e58ac97ffa5c}
|
||||||
|
AppName={#MyAppName}
|
||||||
|
AppVersion={#MyAppVersion}
|
||||||
|
;AppVerName={#MyAppName} {#MyAppVersion}
|
||||||
|
AppPublisher={#MyAppPublisher}
|
||||||
|
AppPublisherURL={#MyAppURL}
|
||||||
|
AppSupportURL={#MyAppURL}
|
||||||
|
AppUpdatesURL={#MyAppURL}
|
||||||
|
DefaultDirName={pf}\{#MyAppName}
|
||||||
|
DefaultGroupName={#MyAppName}
|
||||||
|
OutputBaseFilename=Copay-win
|
||||||
|
OutputDir=./
|
||||||
|
Compression=lzma
|
||||||
|
SolidCompression=yes
|
||||||
|
|
||||||
|
[Languages]
|
||||||
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||||
|
Name: "french"; MessagesFile: "compiler:Languages\French.isl"
|
||||||
|
Name: "japanese"; MessagesFile: "compiler:Languages\Japanese.isl"
|
||||||
|
Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
|
||||||
|
|
||||||
|
[Tasks]
|
||||||
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||||
|
|
||||||
|
[Files]
|
||||||
|
Source: "Copay\win64\copay.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
|
Source: "Copay\win64\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||||
|
Source: "../public/img/icons/favicon.ico"; DestDir: "{app}"; DestName: "icon.ico"; Flags: ignoreversion
|
||||||
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||||||
|
|
||||||
|
[Icons]
|
||||||
|
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; WorkingDir: "{app}"; IconFilename: "{app}/icon.ico"
|
||||||
|
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}/icon.ico"; Tasks: desktopicon
|
||||||
|
|
||||||
|
[Run]
|
||||||
|
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
||||||
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
"description": "A multisignature wallet",
|
"description": "A multisignature wallet",
|
||||||
"author": "BitPay",
|
"author": "BitPay",
|
||||||
"version": "1.11.0",
|
"version": "1.11.0",
|
||||||
|
"androidVersionCode": "81",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"wallet",
|
"wallet",
|
||||||
"copay",
|
"copay",
|
||||||
|
|
@ -69,6 +70,7 @@
|
||||||
"grunt-karma": "^0.10.1",
|
"grunt-karma": "^0.10.1",
|
||||||
"grunt-karma-coveralls": "^2.5.3",
|
"grunt-karma-coveralls": "^2.5.3",
|
||||||
"grunt-node-webkit-builder": "^1.0.2",
|
"grunt-node-webkit-builder": "^1.0.2",
|
||||||
|
"grunt-string-replace": "^1.2.1",
|
||||||
"karma": "^0.12.31",
|
"karma": "^0.12.31",
|
||||||
"karma-cli": "0.0.4",
|
"karma-cli": "0.0.4",
|
||||||
"karma-coverage": "^0.2.7",
|
"karma-coverage": "^0.2.7",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue