summaryrefslogtreecommitdiff
path: root/docs/_build/html/guides/source.html
blob: b436ca084fb13a59e3345c728a6d52c6c5c9f65f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457


<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>Building from Source &mdash; zmNinja  documentation</title>
  

  
  
  
  

  

  
  
    

  

  
  
    <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
  

  

  
        <link rel="index" title="Index"
              href="../genindex.html"/>
        <link rel="search" title="Search" href="../search.html"/>
    <link rel="top" title="zmNinja  documentation" href="../index.html"/>
        <link rel="prev" title="Contributing a new language" href="contributing-language.html"/> 

  
  <script src="../_static/js/modernizr.min.js"></script>

</head>

<body class="wy-body-for-nav" role="document">

   
  <div class="wy-grid-for-nav">

    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search">
          

          
            <a href="../index.html" class="icon icon-home"> zmNinja
          

          
            
            <img src="../_static/ninja.png" class="logo" />
          
          </a>

          
            
            
          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul class="current">
<li class="toctree-l1"><a class="reference internal" href="FAQ.html">zmNinja FAQ</a></li>
<li class="toctree-l1"><a class="reference internal" href="validating-api.html">Validating APIs</a></li>
<li class="toctree-l1"><a class="reference internal" href="desktop.html">Desktop port tips</a></li>
<li class="toctree-l1"><a class="reference internal" href="contributing-language.html">Contributing a new language</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Building from Source</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#install-dependencies-needed-for-all-platforms">Install Dependencies - needed for all platforms</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#install-nodejs">Install NodeJS</a></li>
<li class="toctree-l3"><a class="reference internal" href="#install-cordova-ionic-and-bower">Install cordova, ionic, and bower</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#download-zmninja">Download zmNinja</a></li>
<li class="toctree-l2"><a class="reference internal" href="#configure-build-configure-zmninja-and-get-all-required-plugins">Configure build configure zmNinja and get all required plugins</a></li>
<li class="toctree-l2"><a class="reference internal" href="#making-an-ios-build">Making an iOS build</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#harder-if-you-need-picture-notification-support-in-push">(Harder) If you need picture notification support in push</a></li>
<li class="toctree-l3"><a class="reference internal" href="#easier-if-you-don-t-need-picture-notification-support-in-push">(Easier) If you don’t need picture notification support in push</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#making-an-android-build">Making an Android build</a></li>
<li class="toctree-l2"><a class="reference internal" href="#making-a-desktop-build">Making a desktop build</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#for-versions-1-3-018-and-beyond">For versions 1.3.018 and beyond</a><ul>
<li class="toctree-l4"><a class="reference internal" href="#make-sure-you-have-all-the-dependencies">Make sure you have all the dependencies</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#troubleshooting">Troubleshooting</a></li>
</ul>
</li>
</ul>

            
          
        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../index.html">zmNinja</a>
        
      </nav>


      
      <div class="wy-nav-content">
        <div class="rst-content">
          















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../index.html">Docs</a> &raquo;</li>
        
      <li>Building from Source</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
            
            <a href="../_sources/guides/source.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="building-from-source">
<h1>Building from Source<a class="headerlink" href="#building-from-source" title="Permalink to this headline">¶</a></h1>
<p><strong>NOTE</strong> If you want to run it on your desktop, you can directly
download desktop binaries
<a class="reference external" href="https://github.com/pliablepixels/releases">here</a>
and if you want it for Android/iOS you can get from the play/appstore.
This is only for those who <em>want</em> to run from source.</p>
<blockquote>
<div>Note: If you are building from source, you are mostly on your own. I
have very limited time to debug environment differences/package
differences between what I have and what you may have. I’m not a
nodejs/grunt etc expert and stuff seems to change all the time.</div></blockquote>
<p>Version note: The code is compiled using the following versions of
tools. <strong>If you are using newer versions of ionic the code may not
compile - I don’t have the time to upgrade yet. Finally, if you choose
to go the source route, I expect you to spend a lot of time yourself
debugging first before you create an issue. Even if you do create an
issue, I have very limited bandwidth to debug source compilation issues
for you.</strong> Thanks.</p>
<p>Output of <code class="docutils literal"><span class="pre">ionic</span> <span class="pre">info</span></code></p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">Ionic</span><span class="p">:</span>

   <span class="n">ionic</span> <span class="p">(</span><span class="n">Ionic</span> <span class="n">CLI</span><span class="p">)</span> <span class="p">:</span> <span class="mf">4.5</span><span class="o">.</span><span class="mi">0</span> <span class="p">(</span><span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">lib</span><span class="o">/</span><span class="n">node_modules</span><span class="o">/</span><span class="n">ionic</span><span class="p">)</span>
   <span class="n">Ionic</span> <span class="n">Framework</span>   <span class="p">:</span> <span class="n">ionic1</span> <span class="mf">1.3</span><span class="o">.</span><span class="mi">5</span>
   <span class="nd">@ionic</span><span class="o">/</span><span class="n">v1</span><span class="o">-</span><span class="n">toolkit</span> <span class="p">:</span> <span class="mf">1.0</span><span class="o">.</span><span class="mi">19</span>

<span class="n">Cordova</span><span class="p">:</span>

   <span class="n">cordova</span> <span class="p">(</span><span class="n">Cordova</span> <span class="n">CLI</span><span class="p">)</span> <span class="p">:</span> <span class="mf">8.1</span><span class="o">.</span><span class="mi">2</span> <span class="p">(</span><span class="n">cordova</span><span class="o">-</span><span class="n">lib</span><span class="nd">@8</span><span class="o">.</span><span class="mf">1.1</span><span class="p">)</span>
   <span class="n">Cordova</span> <span class="n">Platforms</span>     <span class="p">:</span> <span class="n">android</span> <span class="mf">7.1</span><span class="o">.</span><span class="mi">4</span><span class="p">,</span> <span class="n">ios</span> <span class="mf">5.0</span><span class="o">.</span><span class="mi">0</span>
   <span class="n">Cordova</span> <span class="n">Plugins</span>       <span class="p">:</span> <span class="n">cordova</span><span class="o">-</span><span class="n">plugin</span><span class="o">-</span><span class="n">ionic</span><span class="o">-</span><span class="n">keyboard</span> <span class="mf">2.1</span><span class="o">.</span><span class="mi">3</span><span class="p">,</span> <span class="n">cordova</span><span class="o">-</span><span class="n">plugin</span><span class="o">-</span><span class="n">ionic</span><span class="o">-</span><span class="n">webview</span> <span class="mf">2.2</span><span class="o">.</span><span class="mi">0</span><span class="p">,</span>
<span class="p">(</span><span class="ow">and</span> <span class="mi">30</span> <span class="n">other</span> <span class="n">plugins</span><span class="p">)</span>

<span class="n">System</span><span class="p">:</span>

   <span class="n">Android</span> <span class="n">SDK</span> <span class="n">Tools</span> <span class="p">:</span> <span class="mf">26.1</span><span class="o">.</span><span class="mi">1</span> <span class="p">(</span><span class="o">/</span><span class="n">Users</span><span class="o">/</span><span class="n">pp</span><span class="o">/</span><span class="n">Library</span><span class="o">/</span><span class="n">Android</span><span class="o">/</span><span class="n">sdk</span><span class="o">/</span><span class="p">)</span>
   <span class="n">ios</span><span class="o">-</span><span class="n">deploy</span>        <span class="p">:</span> <span class="mf">2.0</span><span class="o">.</span><span class="mi">0</span>
   <span class="n">ios</span><span class="o">-</span><span class="n">sim</span>           <span class="p">:</span> <span class="mf">7.0</span><span class="o">.</span><span class="mi">0</span>
   <span class="n">NodeJS</span>            <span class="p">:</span> <span class="n">v8</span><span class="o">.</span><span class="mf">11.2</span> <span class="p">(</span><span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="nb">bin</span><span class="o">/</span><span class="n">node</span><span class="p">)</span>
   <span class="n">npm</span>               <span class="p">:</span> <span class="mf">5.6</span><span class="o">.</span><span class="mi">0</span>
   <span class="n">OS</span>                <span class="p">:</span> <span class="n">macOS</span> <span class="n">Mojave</span>
   <span class="n">Xcode</span>             <span class="p">:</span> <span class="n">Xcode</span> <span class="mf">10.1</span> <span class="n">Build</span> <span class="n">version</span> <span class="mi">10</span><span class="n">B61</span>
</pre></div>
</div>
<div class="section" id="install-dependencies-needed-for-all-platforms">
<h2>Install Dependencies - needed for all platforms<a class="headerlink" href="#install-dependencies-needed-for-all-platforms" title="Permalink to this headline">¶</a></h2>
<div class="section" id="install-nodejs">
<h3>Install NodeJS<a class="headerlink" href="#install-nodejs" title="Permalink to this headline">¶</a></h3>
<p>Install NodeJS from <a class="reference external" href="https://nodejs.org/en/download/">here</a>. As of
Dec 2018, I’m using Node <code class="docutils literal"><span class="pre">v8.11.2</span></code>. I use
<a class="reference external" href="https://github.com/tj/n">n</a> to manage node versions and switch
between them.</p>
</div>
<div class="section" id="install-cordova-ionic-and-bower">
<h3>Install cordova, ionic, and bower<a class="headerlink" href="#install-cordova-ionic-and-bower" title="Permalink to this headline">¶</a></h3>
<div class="code bash highlight-default"><div class="highlight"><pre><span></span><span class="n">npm</span> <span class="n">install</span> <span class="o">-</span><span class="n">g</span> <span class="n">cordova</span> <span class="n">ionic</span> <span class="n">bower</span>
<span class="n">npm</span> <span class="n">install</span> <span class="nd">@ionic</span><span class="o">/</span><span class="n">v1</span><span class="o">-</span><span class="n">toolkit</span> <span class="o">--</span><span class="n">save</span><span class="o">-</span><span class="n">dev</span>
</pre></div>
</div>
<p>And some more:</p>
<div class="code bash highlight-default"><div class="highlight"><pre><span></span><span class="n">npm</span> <span class="n">install</span> <span class="o">-</span><span class="n">g</span> <span class="n">gulp</span>
<span class="n">npm</span> <span class="n">install</span> <span class="n">node</span><span class="o">-</span><span class="n">sass</span>
<span class="n">npm</span> <span class="n">install</span> <span class="k">async</span>
<span class="n">npm</span> <span class="n">install</span> <span class="n">jshint</span>
</pre></div>
</div>
<p>(Note you may need to do <code class="docutils literal"><span class="pre">sudo</span></code> depending on how your system is set
up. It’s <a class="reference external" href="https://johnpapa.net/how-to-use-npm-global-without-sudo-on-osx/">better you
don’t</a>,
but if you must, well, you must)</p>
<p>If you get a newer version, you should adjust your cordova version to
the mentioned version above in order to be able to successfully compile
zmNinja. To change the version you can follow these instructions:
<a class="reference external" href="https://iphonedevlog.wordpress.com/2014/06/25/updating-and-reverting-to-different-cordova-phonegap-versions">change cordova
version</a></p>
</div>
</div>
<div class="section" id="download-zmninja">
<h2>Download zmNinja<a class="headerlink" href="#download-zmninja" title="Permalink to this headline">¶</a></h2>
<div class="code bash highlight-default"><div class="highlight"><pre><span></span><span class="n">git</span> <span class="n">clone</span> <span class="o">--</span><span class="n">depth</span> <span class="mi">1</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">github</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">pliablepixels</span><span class="o">/</span><span class="n">zmNinja</span><span class="o">.</span><span class="n">git</span>
</pre></div>
</div>
</div>
<div class="section" id="configure-build-configure-zmninja-and-get-all-required-plugins">
<h2>Configure build configure zmNinja and get all required plugins<a class="headerlink" href="#configure-build-configure-zmninja-and-get-all-required-plugins" title="Permalink to this headline">¶</a></h2>
<div class="code bash highlight-default"><div class="highlight"><pre><span></span><span class="n">cd</span> <span class="n">zmNinja</span>
<span class="n">npm</span> <span class="n">install</span>
<span class="n">bower</span> <span class="n">install</span>
<span class="n">ionic</span> <span class="n">cordova</span> <span class="n">platform</span> <span class="n">add</span> <span class="n">android</span> <span class="p">(</span><span class="ow">or</span> <span class="n">ios</span><span class="p">)</span>
<span class="n">cordova</span> <span class="n">prepare</span>
</pre></div>
</div>
</div>
<div class="section" id="making-an-ios-build">
<h2>Making an iOS build<a class="headerlink" href="#making-an-ios-build" title="Permalink to this headline">¶</a></h2>
<p>Note: You need to be doing this on a mac, with Xcode and the SDK
installed. You also need to have your developer certificates/etc. (I am
not going to detail this out - there are many internet resources on
this)</p>
<div class="section" id="harder-if-you-need-picture-notification-support-in-push">
<h3>(Harder) If you need picture notification support in push<a class="headerlink" href="#harder-if-you-need-picture-notification-support-in-push" title="Permalink to this headline">¶</a></h3>
<p>As of Mar 2019, cordova-ios does not support multiple targets, nor does
it support automatic building of notification extensions. So there is manual work to be done:</p>
<ul class="simple">
<li>Open up <code class="docutils literal"><span class="pre">platforms/ios/zmNinja.xcworkspace</span></code> in XCode</li>
<li>Go to <code class="docutils literal"><span class="pre">File-&gt;New-&gt;Target-&gt;Notification</span> <span class="pre">Service</span> <span class="pre">Extension</span></code>, select Objective C</li>
<li>In the “Product Name” put in <code class="docutils literal"><span class="pre">zmNinjaNotification</span></code> (your BundleID should now read  <code class="docutils literal"><span class="pre">com.pliablepixels.zmninja-pro.zmNinjaNotification</span></code>)</li>
<li>Say “Yes” to “Activate zmNinjaNotification scheme?” popup</li>
<li>Now go to zmNinjaNotification target and make version and  build same as zmNinja</li>
<li>Now in XCode Targets, select <code class="docutils literal"><span class="pre">zmNinjaNotification</span></code>, and make sure you select a Team and make sure Deployment Target is 10 or above</li>
<li>Change Deployment target to 10.1 (same as zmNinja target)</li>
<li><code class="docutils literal"><span class="pre">`cp</span> <span class="pre">www/external/NotificationService.m</span> <span class="pre">platforms/ios/zmNinjaNotication/</span></code></li>
<li><code class="docutils literal"><span class="pre">cd</span> <span class="pre">platforms/ios/</span></code></li>
<li><code class="docutils literal"><span class="pre">pod</span> <span class="pre">install</span></code></li>
</ul>
<p>You can now do <cite>build_ios.sh</cite>. However, after you build, you will have to go back to XCode
after the build to make the following changes:</p>
<ol class="arabic simple">
<li>Sync notification version with app version</li>
<li>Change notification bundle ID back to com.pliablepixels.zmninja-pro.zmNinjaNotification (cordova removes the last word)</li>
</ol>
</div>
<div class="section" id="easier-if-you-don-t-need-picture-notification-support-in-push">
<h3>(Easier) If you don’t need picture notification support in push<a class="headerlink" href="#easier-if-you-don-t-need-picture-notification-support-in-push" title="Permalink to this headline">¶</a></h3>
<p>There are a few steps you need to take to get the iOS build working for
the first time. If you don’t do this, you may get a compilation error
that says <code class="docutils literal"><span class="pre">ld:</span> <span class="pre">library</span> <span class="pre">not</span> <span class="pre">found</span> <span class="pre">for</span> <span class="pre">-lGoogleToolboxForMac</span></code></p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">cd</span> <span class="n">platforms</span><span class="o">/</span><span class="n">ios</span>
<span class="n">pod</span> <span class="n">install</span>
</pre></div>
</div>
<p>This does not produce an iOS ready ipa. What you need to do then is to
open <code class="docutils literal"><span class="pre">platforms/ios/zmNinja.xcworkspace</span></code> in Xcode, and run.</p>
<p>To compile a debug build for iOS from command line, from zmNinja project
root: First edit <code class="docutils literal"><span class="pre">./build-auto.json</span></code> and change the
<code class="docutils literal"><span class="pre">developmentTeam</span></code> id to yours. Then:</p>
<div class="code bash highlight-default"><div class="highlight"><pre><span></span><span class="o">./</span><span class="n">build_ios</span><span class="o">.</span><span class="n">sh</span>
</pre></div>
</div>
<p>To compile using XCode, open <code class="docutils literal"><span class="pre">platforms/ios/zmNinja.xcworkspace</span></code> - You
need to use “Legacy Build” system if you are on XCode 10+. You can
change this in XCode <code class="docutils literal"><span class="pre">File-&gt;Workspace</span> <span class="pre">Settings</span></code> and then build usual.
Also switch to the Capabilities tab and make sure “Remote Notifications”
is on in Background Modes and in iCloud section, Key-Value storage is
enabled. If you see a “Fix issue” there, clicking on that button
resolves everything.</p>
</div>
</div>
<div class="section" id="making-an-android-build">
<h2>Making an Android build<a class="headerlink" href="#making-an-android-build" title="Permalink to this headline">¶</a></h2>
<p>Note that you need the <a class="reference external" href="http://developer.android.com/sdk/index.html">Android
SDK</a> installed and
configured properly for this to work.</p>
<p>From the zmNinja project root:</p>
<div class="code bash highlight-default"><div class="highlight"><pre><span></span><span class="o">./</span><span class="n">build_android</span><span class="o">.</span><span class="n">sh</span> <span class="o">--</span><span class="n">debug</span> <span class="p">(</span><span class="ow">or</span> <span class="o">--</span><span class="n">release</span><span class="p">)</span>
</pre></div>
</div>
<p>If this complains of missing SDKs, you need to install the SDK version
it requests This should produce an APK file. To install it on your phone
over adb, you’d do something like</p>
<div class="code bash highlight-default"><div class="highlight"><pre><span></span><span class="n">adb</span> <span class="n">install</span> <span class="o">-</span><span class="n">r</span> <span class="n">debug_files</span><span class="o">/</span><span class="n">android</span><span class="o">-</span><span class="n">debug</span><span class="o">.</span><span class="n">apk</span> <span class="c1">#if you did --debug</span>
<span class="ow">or</span><span class="p">,</span>
<span class="n">adb</span> <span class="n">install</span> <span class="o">-</span><span class="n">r</span> <span class="n">release_files</span><span class="o">/</span><span class="n">zmNinja</span><span class="o">.</span><span class="n">apk</span> <span class="c1">#if you did --release</span>
</pre></div>
</div>
</div>
<div class="section" id="making-a-desktop-build">
<h2>Making a desktop build<a class="headerlink" href="#making-a-desktop-build" title="Permalink to this headline">¶</a></h2>
<p>I use <a class="reference external" href="https://electron.atom.io">electron</a> to build the desktop app.</p>
<div class="section" id="for-versions-1-3-018-and-beyond">
<h3>For versions 1.3.018 and beyond<a class="headerlink" href="#for-versions-1-3-018-and-beyond" title="Permalink to this headline">¶</a></h3>
<p>I’ve migrated to using
<a class="reference external" href="https://github.com/electron-userland/electron-builder">electron-builder</a>
to automate the build process better.</p>
<div class="section" id="make-sure-you-have-all-the-dependencies">
<h4>Make sure you have all the dependencies<a class="headerlink" href="#make-sure-you-have-all-the-dependencies" title="Permalink to this headline">¶</a></h4>
<p>Typically, just running</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">npm</span> <span class="n">install</span>
<span class="n">bower</span> <span class="n">install</span>
</pre></div>
</div>
<p>Should have installed everything. Validate by checking you have
<code class="docutils literal"><span class="pre">electron</span></code> installed by invoking it on the command line</p>
<p>You now have the following options:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">npm</span> <span class="n">run</span> <span class="n">dist</span><span class="o">-</span><span class="nb">all</span> <span class="c1"># builds linux, mac and windows packages</span>
<span class="n">npm</span> <span class="n">run</span> <span class="n">dist</span><span class="o">-</span><span class="n">mac</span> <span class="c1"># only builds mac packages</span>
<span class="n">npm</span> <span class="n">run</span> <span class="n">dist</span><span class="o">-</span><span class="n">lin</span> <span class="c1"># only builds linux packages (32bit, 64bit, arm)</span>
<span class="n">npm</span> <span class="n">run</span> <span class="n">dist</span><span class="o">-</span><span class="n">win</span> <span class="c1"># only builds win packages (32bit, 64bit)</span>
</pre></div>
</div>
<p>Your packages will be created in the <code class="docutils literal"><span class="pre">dist</span></code> folder</p>
</div>
</div>
</div>
<div class="section" id="troubleshooting">
<h2>Troubleshooting<a class="headerlink" href="#troubleshooting" title="Permalink to this headline">¶</a></h2>
<p>Lots of things can go wrong.</p>
<ul class="simple">
<li>Please make sure you don’t post issues about why your own build is not working - please figure it out</li>
<li>Look carefully at error messages</li>
</ul>
</div>
</div>


           </div>
           <div class="articleComments">
            
           </div>
          </div>
          <footer>
  
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
      
      
        <a href="contributing-language.html" class="btn btn-neutral" title="Contributing a new language" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
      
    </div>
  

  <hr/>

  <div role="contentinfo">
    <p>
        &copy; Copyright 2019, Pliable Pixels.

    </p>
  </div>
  Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. 

</footer>

        </div>
      </div>

    </section>

  </div>
  


  

    <script type="text/javascript">
        var DOCUMENTATION_OPTIONS = {
            URL_ROOT:'../',
            VERSION:'',
            COLLAPSE_INDEX:false,
            FILE_SUFFIX:'.html',
            HAS_SOURCE:  true,
            SOURCELINK_SUFFIX: '.txt'
        };
    </script>
      <script type="text/javascript" src="../_static/jquery.js"></script>
      <script type="text/javascript" src="../_static/underscore.js"></script>
      <script type="text/javascript" src="../_static/doctools.js"></script>

  

  
  
    <script type="text/javascript" src="../_static/js/theme.js"></script>
  

  
  
  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.StickyNav.enable();
      });
  </script>
   

</body>
</html>