@electron-forge/publisher-nucleus 6.0.0-beta.8 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/doc/index.html DELETED
@@ -1,170 +0,0 @@
1
- <!doctype html>
2
- <html class="default no-js">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <title>@electron-forge/publisher-nucleus</title>
7
- <meta name="description" content="">
8
- <meta name="viewport" content="width=device-width, initial-scale=1">
9
- <link rel="stylesheet" href="assets/css/main.css">
10
- </head>
11
- <body>
12
- <header>
13
- <div class="tsd-page-toolbar">
14
- <div class="container">
15
- <div class="table-wrap">
16
- <div class="table-cell" id="tsd-search" data-index="assets/js/search.js" data-base=".">
17
- <div class="field">
18
- <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
19
- <input id="tsd-search-field" type="text" />
20
- </div>
21
- <ul class="results">
22
- <li class="state loading">Preparing search index...</li>
23
- <li class="state failure">The search index is not available</li>
24
- </ul>
25
- <a href="index.html" class="title">@electron-forge/publisher-nucleus</a>
26
- </div>
27
- <div class="table-cell" id="tsd-widgets">
28
- <div id="tsd-filter">
29
- <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
30
- <div class="tsd-filter-group">
31
- <div class="tsd-select" id="tsd-filter-visibility">
32
- <span class="tsd-select-label">All</span>
33
- <ul class="tsd-select-list">
34
- <li data-value="public">Public</li>
35
- <li data-value="protected">Public/Protected</li>
36
- <li data-value="private" class="selected">All</li>
37
- </ul>
38
- </div>
39
- <input type="checkbox" id="tsd-filter-inherited" checked />
40
- <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
41
- <input type="checkbox" id="tsd-filter-only-exported" />
42
- <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
43
- </div>
44
- </div>
45
- <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
46
- </div>
47
- </div>
48
- </div>
49
- </div>
50
- <div class="tsd-page-title">
51
- <div class="container">
52
- <ul class="tsd-breadcrumb">
53
- <li>
54
- <a href="globals.html">Globals</a>
55
- </li>
56
- </ul>
57
- <h1> @electron-forge/publisher-nucleus</h1>
58
- </div>
59
- </div>
60
- </header>
61
- <div class="container container-main">
62
- <div class="row">
63
- <div class="col-8 col-content">
64
- <div class="tsd-panel tsd-typography">
65
- <h1 id="nucleus">Nucleus</h1>
66
- <p>The Nucleus target publishes all your artifacts to an instance of Nucleus Update Server, this update service supports all three platforms. Check out the README at <a href="https://github.com/atlassian/nucleus"><code>atlassian/github</code></a> for more information on this project.</p>
67
- <p>Configuration options are documented in <a href="https://js.electronforge.io/publisher/nucleus/interfaces/publishernucleusconfig.html"><code>PublisherNucleusConfig</code></a></p>
68
- <p>⚠️ <b>We recommend you set the <code>token</code> option using an environment variable, don&#39;t hard code it into your config
69
- </b></p>
70
- <h3 id="usage">Usage</h3>
71
- <pre><code class="lang-javascript">{
72
- <span class="hljs-attr">name</span>: <span class="hljs-string">'@electron-forge/publisher-nucleus'</span>,
73
- <span class="hljs-attr">config</span>: {
74
- <span class="hljs-attr">host</span>: <span class="hljs-string">'https://my-nucleus.mysite.com'</span>
75
- appId: <span class="hljs-number">1</span>,
76
- <span class="hljs-attr">channelId</span>: <span class="hljs-string">'abcdefg'</span>,
77
- <span class="hljs-attr">token</span>: <span class="hljs-string">'my-token'</span>
78
- }
79
- }
80
- </code></pre>
81
- </div>
82
- </div>
83
- <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
84
- <nav class="tsd-navigation primary">
85
- <ul>
86
- <li class="globals ">
87
- <a href="globals.html"><em>Globals</em></a>
88
- </li>
89
- </ul>
90
- </nav>
91
- <nav class="tsd-navigation secondary menu-sticky">
92
- <ul class="before-current">
93
- <li class=" tsd-kind-class">
94
- <a href="classes/publishernucleus.html" class="tsd-kind-icon">Publisher<wbr>Nucleus</a>
95
- </li>
96
- <li class=" tsd-kind-interface">
97
- <a href="interfaces/publishernucleusconfig.html" class="tsd-kind-icon">Publisher<wbr>Nucleus<wbr>Config</a>
98
- </li>
99
- <li class=" tsd-kind-variable tsd-is-not-exported">
100
- <a href="globals.html#d" class="tsd-kind-icon">d</a>
101
- </li>
102
- </ul>
103
- </nav>
104
- </div>
105
- </div>
106
- </div>
107
- <footer>
108
- <div class="container">
109
- <h2>Legend</h2>
110
- <div class="tsd-legend-group">
111
- <ul class="tsd-legend">
112
- <li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
113
- <li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
114
- <li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
115
- <li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
116
- <li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
117
- <li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
118
- <li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
119
- </ul>
120
- <ul class="tsd-legend">
121
- <li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
122
- <li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
123
- <li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
124
- <li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
125
- </ul>
126
- <ul class="tsd-legend">
127
- <li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
128
- <li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
129
- <li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
130
- <li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
131
- <li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
132
- <li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
133
- </ul>
134
- <ul class="tsd-legend">
135
- <li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
136
- <li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
137
- <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
138
- <li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
139
- <li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
140
- <li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
141
- <li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
142
- </ul>
143
- <ul class="tsd-legend">
144
- <li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
145
- <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
146
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
147
- <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
148
- </ul>
149
- <ul class="tsd-legend">
150
- <li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
151
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
152
- <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
153
- </ul>
154
- <ul class="tsd-legend">
155
- <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
156
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
157
- <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
158
- </ul>
159
- <ul class="tsd-legend">
160
- <li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
161
- <li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
162
- </ul>
163
- </div>
164
- </div>
165
- </footer>
166
- <div class="overlay"></div>
167
- <script src="assets/js/main.js"></script>
168
- <script>if (location.protocol == 'file:') document.write('<script src="assets/js/search.js"><' + '/script>');</script>
169
- </body>
170
- </html>
@@ -1,260 +0,0 @@
1
- <!doctype html>
2
- <html class="default no-js">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <title>PublisherNucleusConfig | @electron-forge/publisher-nucleus</title>
7
- <meta name="description" content="">
8
- <meta name="viewport" content="width=device-width, initial-scale=1">
9
- <link rel="stylesheet" href="../assets/css/main.css">
10
- </head>
11
- <body>
12
- <header>
13
- <div class="tsd-page-toolbar">
14
- <div class="container">
15
- <div class="table-wrap">
16
- <div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base="..">
17
- <div class="field">
18
- <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
19
- <input id="tsd-search-field" type="text" />
20
- </div>
21
- <ul class="results">
22
- <li class="state loading">Preparing search index...</li>
23
- <li class="state failure">The search index is not available</li>
24
- </ul>
25
- <a href="../index.html" class="title">@electron-forge/publisher-nucleus</a>
26
- </div>
27
- <div class="table-cell" id="tsd-widgets">
28
- <div id="tsd-filter">
29
- <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
30
- <div class="tsd-filter-group">
31
- <div class="tsd-select" id="tsd-filter-visibility">
32
- <span class="tsd-select-label">All</span>
33
- <ul class="tsd-select-list">
34
- <li data-value="public">Public</li>
35
- <li data-value="protected">Public/Protected</li>
36
- <li data-value="private" class="selected">All</li>
37
- </ul>
38
- </div>
39
- <input type="checkbox" id="tsd-filter-inherited" checked />
40
- <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
41
- <input type="checkbox" id="tsd-filter-only-exported" />
42
- <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
43
- </div>
44
- </div>
45
- <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
46
- </div>
47
- </div>
48
- </div>
49
- </div>
50
- <div class="tsd-page-title">
51
- <div class="container">
52
- <ul class="tsd-breadcrumb">
53
- <li>
54
- <a href="../globals.html">Globals</a>
55
- </li>
56
- <li>
57
- <a href="publishernucleusconfig.html">PublisherNucleusConfig</a>
58
- </li>
59
- </ul>
60
- <h1>Interface PublisherNucleusConfig</h1>
61
- </div>
62
- </div>
63
- </header>
64
- <div class="container container-main">
65
- <div class="row">
66
- <div class="col-8 col-content">
67
- <section class="tsd-panel tsd-hierarchy">
68
- <h3>Hierarchy</h3>
69
- <ul class="tsd-hierarchy">
70
- <li>
71
- <span class="target">PublisherNucleusConfig</span>
72
- </li>
73
- </ul>
74
- </section>
75
- <section class="tsd-panel-group tsd-index-group">
76
- <h2>Index</h2>
77
- <section class="tsd-panel tsd-index-panel">
78
- <div class="tsd-index-content">
79
- <section class="tsd-index-section ">
80
- <h3>Properties</h3>
81
- <ul class="tsd-index-list">
82
- <li class="tsd-kind-property tsd-parent-kind-interface"><a href="publishernucleusconfig.html#appid" class="tsd-kind-icon">app<wbr>Id</a></li>
83
- <li class="tsd-kind-property tsd-parent-kind-interface"><a href="publishernucleusconfig.html#channelid" class="tsd-kind-icon">channel<wbr>Id</a></li>
84
- <li class="tsd-kind-property tsd-parent-kind-interface"><a href="publishernucleusconfig.html#host" class="tsd-kind-icon">host</a></li>
85
- <li class="tsd-kind-property tsd-parent-kind-interface"><a href="publishernucleusconfig.html#token" class="tsd-kind-icon">token</a></li>
86
- </ul>
87
- </section>
88
- </div>
89
- </section>
90
- </section>
91
- <section class="tsd-panel-group tsd-member-group ">
92
- <h2>Properties</h2>
93
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
94
- <a name="appid" class="tsd-anchor"></a>
95
- <h3>app<wbr>Id</h3>
96
- <div class="tsd-signature tsd-kind-icon">app<wbr>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
97
- <aside class="tsd-sources">
98
- <ul>
99
- <li>Defined in <a href="https://github.com/electron-userland/electron-forge/blob/ab64142/packages/publisher/nucleus/src/Config.ts#L9">Config.ts:9</a></li>
100
- </ul>
101
- </aside>
102
- <div class="tsd-comment tsd-typography">
103
- <div class="lead">
104
- <p>App ID of your target application in Nucleus</p>
105
- </div>
106
- </div>
107
- </section>
108
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
109
- <a name="channelid" class="tsd-anchor"></a>
110
- <h3>channel<wbr>Id</h3>
111
- <div class="tsd-signature tsd-kind-icon">channel<wbr>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
112
- <aside class="tsd-sources">
113
- <ul>
114
- <li>Defined in <a href="https://github.com/electron-userland/electron-forge/blob/ab64142/packages/publisher/nucleus/src/Config.ts#L13">Config.ts:13</a></li>
115
- </ul>
116
- </aside>
117
- <div class="tsd-comment tsd-typography">
118
- <div class="lead">
119
- <p>Channel ID of your target application in Nucleus</p>
120
- </div>
121
- </div>
122
- </section>
123
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
124
- <a name="host" class="tsd-anchor"></a>
125
- <h3>host</h3>
126
- <div class="tsd-signature tsd-kind-icon">host<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
127
- <aside class="tsd-sources">
128
- <ul>
129
- <li>Defined in <a href="https://github.com/electron-userland/electron-forge/blob/ab64142/packages/publisher/nucleus/src/Config.ts#L5">Config.ts:5</a></li>
130
- </ul>
131
- </aside>
132
- <div class="tsd-comment tsd-typography">
133
- <div class="lead">
134
- <p>Hostname (with https?://) of your instance of Nucleus</p>
135
- </div>
136
- </div>
137
- </section>
138
- <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
139
- <a name="token" class="tsd-anchor"></a>
140
- <h3>token</h3>
141
- <div class="tsd-signature tsd-kind-icon">token<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
142
- <aside class="tsd-sources">
143
- <ul>
144
- <li>Defined in <a href="https://github.com/electron-userland/electron-forge/blob/ab64142/packages/publisher/nucleus/src/Config.ts#L17">Config.ts:17</a></li>
145
- </ul>
146
- </aside>
147
- <div class="tsd-comment tsd-typography">
148
- <div class="lead">
149
- <p>Authentication token for your app, you can find this on the Nucleus web UI</p>
150
- </div>
151
- </div>
152
- </section>
153
- </section>
154
- </div>
155
- <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
156
- <nav class="tsd-navigation primary">
157
- <ul>
158
- <li class="globals ">
159
- <a href="../globals.html"><em>Globals</em></a>
160
- </li>
161
- </ul>
162
- </nav>
163
- <nav class="tsd-navigation secondary menu-sticky">
164
- <ul class="before-current">
165
- <li class=" tsd-kind-class">
166
- <a href="../classes/publishernucleus.html" class="tsd-kind-icon">Publisher<wbr>Nucleus</a>
167
- </li>
168
- </ul>
169
- <ul class="current">
170
- <li class="current tsd-kind-interface">
171
- <a href="publishernucleusconfig.html" class="tsd-kind-icon">Publisher<wbr>Nucleus<wbr>Config</a>
172
- <ul>
173
- <li class=" tsd-kind-property tsd-parent-kind-interface">
174
- <a href="publishernucleusconfig.html#appid" class="tsd-kind-icon">app<wbr>Id</a>
175
- </li>
176
- <li class=" tsd-kind-property tsd-parent-kind-interface">
177
- <a href="publishernucleusconfig.html#channelid" class="tsd-kind-icon">channel<wbr>Id</a>
178
- </li>
179
- <li class=" tsd-kind-property tsd-parent-kind-interface">
180
- <a href="publishernucleusconfig.html#host" class="tsd-kind-icon">host</a>
181
- </li>
182
- <li class=" tsd-kind-property tsd-parent-kind-interface">
183
- <a href="publishernucleusconfig.html#token" class="tsd-kind-icon">token</a>
184
- </li>
185
- </ul>
186
- </li>
187
- </ul>
188
- <ul class="after-current">
189
- <li class=" tsd-kind-variable tsd-is-not-exported">
190
- <a href="../globals.html#d" class="tsd-kind-icon">d</a>
191
- </li>
192
- </ul>
193
- </nav>
194
- </div>
195
- </div>
196
- </div>
197
- <footer>
198
- <div class="container">
199
- <h2>Legend</h2>
200
- <div class="tsd-legend-group">
201
- <ul class="tsd-legend">
202
- <li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
203
- <li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
204
- <li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
205
- <li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
206
- <li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
207
- <li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
208
- <li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
209
- </ul>
210
- <ul class="tsd-legend">
211
- <li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
212
- <li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
213
- <li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
214
- <li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
215
- </ul>
216
- <ul class="tsd-legend">
217
- <li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
218
- <li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
219
- <li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
220
- <li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
221
- <li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
222
- <li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
223
- </ul>
224
- <ul class="tsd-legend">
225
- <li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
226
- <li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
227
- <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
228
- <li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
229
- <li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
230
- <li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
231
- <li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
232
- </ul>
233
- <ul class="tsd-legend">
234
- <li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
235
- <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
236
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
237
- <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
238
- </ul>
239
- <ul class="tsd-legend">
240
- <li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
241
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
242
- <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
243
- </ul>
244
- <ul class="tsd-legend">
245
- <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
246
- <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
247
- <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
248
- </ul>
249
- <ul class="tsd-legend">
250
- <li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
251
- <li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
252
- </ul>
253
- </div>
254
- </div>
255
- </footer>
256
- <div class="overlay"></div>
257
- <script src="../assets/js/main.js"></script>
258
- <script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
259
- </body>
260
- </html>
package/src/Config.ts DELETED
@@ -1,18 +0,0 @@
1
- export interface PublisherNucleusConfig {
2
- /**
3
- * Hostname (with https?://) of your instance of Nucleus
4
- */
5
- host: string;
6
- /**
7
- * App ID of your target application in Nucleus
8
- */
9
- appId: number;
10
- /**
11
- * Channel ID of your target application in Nucleus
12
- */
13
- channelId: string;
14
- /**
15
- * Authentication token for your app, you can find this on the Nucleus web UI
16
- */
17
- token: string;
18
- }
@@ -1,52 +0,0 @@
1
- import PublisherBase, { PublisherOptions } from '@electron-forge/publisher-base';
2
- import { asyncOra } from '@electron-forge/async-ora';
3
- import { ForgePlatform, ForgeArch } from '@electron-forge/shared-types';
4
- import debug from 'debug';
5
- import FormData from 'form-data';
6
- import fs from 'fs';
7
- import fetch from 'node-fetch';
8
- import path from 'path';
9
-
10
- import { PublisherNucleusConfig } from './Config';
11
-
12
- const d = debug('electron-forge:publish:nucleus');
13
-
14
- export default class PublisherNucleus extends PublisherBase<PublisherNucleusConfig> {
15
- name = 'nucleus';
16
-
17
- async publish({ makeResults }: PublisherOptions) {
18
- const { config } = this;
19
-
20
- for (const [i, makeResult] of makeResults.entries()) {
21
- const msg = `Uploading result (${i}/${makeResults.length})`;
22
- d(msg);
23
-
24
- await asyncOra(msg, async () => {
25
- const data = new FormData();
26
- data.append('platform', makeResult.platform);
27
- data.append('arch', makeResult.arch);
28
- data.append('version', makeResult.packageJSON.version);
29
-
30
- let i = 0;
31
- for (const artifactPath of makeResult.artifacts) {
32
- // Skip the RELEASES file, it is automatically generated on the server
33
- if (path.basename(artifactPath).toLowerCase() === 'releases') continue;
34
- data.append('file' + i, fs.createReadStream(artifactPath));
35
- i += 1;
36
- }
37
-
38
- const response = await fetch(`${config.host}/rest/app/${config.appId}/channel/${config.channelId}/upload`, {
39
- headers: {
40
- Authorization: config.token,
41
- },
42
- method: 'POST',
43
- body: data,
44
- });
45
-
46
- if (response.status !== 200) {
47
- throw `Unexpected response code from Nucleus: ${response.status}\n\nBody:\n${await response.text()}`;
48
- }
49
- });
50
- }
51
- }
52
- }
package/tslint.json DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "extends": "tslint-config-airbnb",
3
- "rules": {
4
- "no-boolean-literal-compare": false,
5
- "import-name": false,
6
- "align": false,
7
- "variable-name": [true, "ban-keywords", "check-format", "allow-pascal-case"],
8
- "no-this-assignment": [true, { "allow-destructuring": true }],
9
- "max-line-length": false,
10
- "no-parameter-reassignment": false
11
- }
12
- }