Skip to content

Commit b694e25

Browse files
committed
adds arm64 support
1 parent 2a0b2dd commit b694e25

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.travis.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ before_deploy:
2929
#
3030
# actuall building of the binaries
3131
- npm run -loglevel ${NPM_DEBUG_LEVEL} deploy:linux-x64
32+
- npm run -loglevel ${NPM_DEBUG_LEVEL} deploy:linux-arm64
3233
- npm run -loglevel ${NPM_DEBUG_LEVEL} deploy:linux-ia32
3334
- npm run -loglevel ${NPM_DEBUG_LEVEL} deploy:darwin-x64
3435
- npm run -loglevel ${NPM_DEBUG_LEVEL} deploy:darwin-arm64
@@ -50,8 +51,8 @@ before_deploy:
5051
# Flatpak
5152
# install flatpak dependencies
5253
#
53-
# Commented out as it is not working
54-
#
54+
## Commented out as it is not working
55+
##
5556
#- sudo add-apt-repository ppa:alexlarsson/flatpak -y
5657
#- sudo apt-get update -qq
5758
#- sudo apt-get install flatpak-builder flatpak -qq

gulpfile.coffee

+9-3
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ deploy = (platform, arch, cb) ->
306306
opts.arch = arch
307307
#
308308
# restriction darwin won't compile ia32
309-
if platform == 'darwin' && arch == 'ia32'
309+
if platform is 'darwin' and arch is 'ia32'
310310
cb()
311311
deferred.resolve()
312312
return deferred.promise
@@ -317,6 +317,7 @@ deploy = (platform, arch, cb) ->
317317
if platform == 'darwin'
318318
packOpts.name = 'YakYak'
319319
#
320+
console.log('packOpts', packOpts)
320321
packager(packOpts)
321322
.catch (error) ->
322323
console.error(error)
@@ -368,9 +369,12 @@ archOpts.forEach (arch) ->
368369
else if target is 'deb'
369370
archName = 'amd64'
370371
archNameSuffix = 'amd64'
371-
else
372+
else if arch is 'x64'
372373
archName = 'x86_64'
373374
archNameSuffix = 'x64'
375+
else
376+
archName = arch
377+
archNameSuffix = arch
374378

375379
if target == 'pacman'
376380
suffix = 'tar.gz'
@@ -464,8 +468,10 @@ archOpts.forEach (arch) ->
464468

465469
if arch is 'ia32'
466470
options.arch = 'i386'
467-
else
471+
else if arch is 'x64'
468472
options.arch = 'amd64'
473+
else
474+
options.arch = arch
469475

470476
options.rename = (dest, src) -> path.join(dest, "#{json.name}-#{json.version}-linux-#{options.arch}.deb")
471477
debian options

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"deploy:linux": "gulp deploy:linux",
1515
"deploy:win32": "gulp deploy:win32",
1616
"deploy:darwin": "gulp deploy:darwin",
17+
"deploy:linux-arm64": "gulp deploy:linux-arm64",
1718
"deploy:linux-x64": "gulp deploy:linux-x64",
1819
"deploy:linux-x64:deb": "gulp deploy:linux-x64:deb",
1920
"deploy:linux-x64:flatpak": "gulp deploy:linux-x64:flatpak",

0 commit comments

Comments
 (0)