netfira-installer-generator 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e8eefc83aaedbcac1b2d739260c6fe1640f0102
4
- data.tar.gz: 2e9faee4cff0689bd39c9f2530aeda3eb47df43a
3
+ metadata.gz: b848e1504048dd2b24afcbf14149d592f82c9d01
4
+ data.tar.gz: 3684965c03d87636e97f8536533c2cd80424c8b9
5
5
  SHA512:
6
- metadata.gz: ce181f471ec525eb3cec3801953c87e7ee444e1c9b638fbe924cab6d13563c818487e54a4268273dc493d4d899a5b525d03bdc6b189cc0eb67006d54b32108af
7
- data.tar.gz: bc495314f068e423cbe3243f527c18330b494e937cb56f9fd9ec77bc54eaf9cac573280035a74c0c7ad2ec318441476c6c421e3ccac802d30635b12ce58ee757
6
+ metadata.gz: c9e7fdcc381123d45e290fa6595252fdb5edad42e821fb1d3563352342ee89f1278a84fe1cc5a3fd2b0c716ea57ef0ac996c6fe09d55f5be78036b1cfacb71cf
7
+ data.tar.gz: e9557a893d99aefce915a2524f962cbdc989a610e5909d2865507295d9d35eebc70644ba9fb734d7cb83ca9124b634dbf505c3b73879ed88a457169848e53608
@@ -103,16 +103,16 @@ module Netfira
103
103
  end
104
104
 
105
105
  def render_nsis_template
106
- # noinspection RubyStringKeysInHashInspection
106
+ # noinspection RubyStringKeysInHashInspection,SpellCheckingInspection
107
107
  values = {
108
108
  'INSTALLER_NAME' => installer_name,
109
109
  'TEMP_DIR' => temp_dir,
110
110
  'INSTALLER_FILENAME' => installer_filename,
111
- 'WHO_AM_I_GUID' => shop_id,
112
- 'AUTHENTICATION_SERVER_1' => auth_server,
111
+ 'SHOP_ID' => shop_id,
112
+ 'AUTHENTICATION_SERVER' => auth_server,
113
113
  'WEBSTORE_SYNC_URL' => sync_url,
114
114
  'WEBSTORE_FRONT_URL' => shop_url,
115
- 'SHOP_ADDRESS' => URI.parse(shop_url).host,
115
+ 'SHOP_ADDRESS' => URI.parse(sync_url).host,
116
116
  'NO_USE_SSL' => use_ssl ? '0' : '1'
117
117
  }
118
118
  NsisTemplate.sub values
@@ -1,4 +1,5 @@
1
1
  module Netfira
2
+ # noinspection SpellCheckingInspection
2
3
  class InstallerGenerator
3
4
  module NsisTemplate
4
5
 
@@ -10,62 +11,27 @@ module Netfira
10
11
 
11
12
  def self.template
12
13
  @template ||= <<-__EOF__
13
- ; This script creates the bootstrap installer for the Netfira download manager.
14
14
 
15
- ;--------------------------------
16
- ; No output from this bootstrap installer:
17
15
  SilentInstall silent
16
+ Name "{INSTALLER_NAME}"
17
+ Icon setup.ico
18
+ OutFile nsis_generated.exe
19
+ InstallDir "$TEMP\\{TEMP_DIR}"
18
20
 
19
- ; The name of the installer
20
- Name "{INSTALLER_NAME}"
21
- Icon setup.ico
22
-
23
- ; The file to write
24
- OutFile "nsis_generated.exe"
25
-
26
- ; The default installation directory
27
- InstallDir $TEMP\{TEMP_DIR}
28
-
29
- ; The stuff to install
30
21
  Section ""
31
-
32
- ; Set output path to the installation directory.
33
22
  SetOutPath $INSTDIR
34
-
35
- ; Put file Netfira download manager in the temp directory
36
23
  File {INSTALLER_FILENAME}
37
24
 
38
- ; WhoAmIGUID
39
- ReadRegStr $1 HKLM "Software\Netfire\AMIPS" "WhoAmIGUID"
40
-
41
- ; if the registry value is empty - set it, otherwise continue
42
- StrCmp $1 "" 0 +2
43
- WriteRegStr HKLM "Software\Netfire\AMIPS" "WhoAmIGUID" "{WHO_AM_I_GUID}"
44
-
45
- ; AuthenticationServer1
46
- ReadRegStr $1 HKLM "Software\Netfire\AMIPS" "AuthenticationServer1"
47
-
48
- ; if the registry value is empty - set it, otherwise continue
49
- StrCmp $1 "" 0 +2
50
- WriteRegStr HKLM "Software\Netfire\AMIPS" "AuthenticationServer1" "{AUTHENTICATION_SERVER_1}"
51
-
52
- ; Webstore
53
- ReadRegStr $1 HKLM "Software\Netfire\Webstore" "SyncURL"
54
-
55
- ; if the registry value is empty - set it, otherwise continue
56
- StrCmp $1 "" 0 +2
57
- WriteRegStr HKLM "Software\Netfire\Webstore" "SyncURL" "{WEBSTORE_SYNC_URL}"
58
- StrCmp $1 "" 0 +2
59
- WriteRegStr HKLM "Software\Netfire\Webstore" "StoreFrontURL" "{WEBSTORE_FRONT_URL}"
60
- StrCmp $1 "" 0 +2
61
- WriteRegStr HKLM "Software\Netfire\Webstore" "Server" "{SHOP_ADDRESS}"
62
- StrCmp $1 "" 0 +2
63
- WriteRegStr HKLM "Software\Netfire\Networking" "NoUseSsl" "{NO_USE_SSL}"
64
-
65
- ; Execute the download manager:
66
- Exec '"$INSTDIR\{INSTALLER_FILENAME}"'
25
+ WriteRegStr HKLM "Software\\Netfire\\AMIPS" "AuthenticationServer1" "{AUTHENTICATION_SERVER}"
26
+ WriteRegStr HKLM "Software\\Netfire\\Webstore" "ShopId" "{SHOP_ID}"
27
+ WriteRegStr HKLM "Software\\Netfire\\Webstore" "SyncURL" "{WEBSTORE_SYNC_URL}"
28
+ WriteRegStr HKLM "Software\\Netfire\\Webstore" "StoreFrontURL" "{WEBSTORE_FRONT_URL}"
29
+ WriteRegStr HKLM "Software\\Netfire\\Webstore" "Server" "{SHOP_ADDRESS}"
30
+ WriteRegStr HKLM "Software\\Netfire\\Networking" "NoUseSsl" "{NO_USE_SSL}"
67
31
 
32
+ Exec '"$INSTDIR\\{INSTALLER_FILENAME}"'
68
33
  SectionEnd
34
+
69
35
  __EOF__
70
36
  end
71
37
 
@@ -1,5 +1,5 @@
1
1
  module Netfira
2
2
  class InstallerGenerator
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netfira-installer-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neil E. Pearson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-23 00:00:00.000000000 Z
11
+ date: 2014-09-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Netfira Windows App Installer Generator
14
14
  email:
@@ -54,3 +54,4 @@ signing_key:
54
54
  specification_version: 4
55
55
  summary: Netfira Windows App Installer Generator
56
56
  test_files: []
57
+ has_rdoc: