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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b848e1504048dd2b24afcbf14149d592f82c9d01
|
4
|
+
data.tar.gz: 3684965c03d87636e97f8536533c2cd80424c8b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
'
|
112
|
-
'
|
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(
|
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
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
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
|
|
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.
|
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-
|
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:
|