Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Ubuntu packages #8

Closed
forteller opened this issue Feb 20, 2016 · 7 comments
Closed

Ubuntu packages #8

forteller opened this issue Feb 20, 2016 · 7 comments

Comments

@forteller
Copy link

Hi. This looks great. I'm hoping for a .deb soon (and preferably a PPA too, to keep it up to date automatically). Thanks!

@brrd
Copy link
Owner

brrd commented Feb 22, 2016

Hi, .deb is definitely planned, such as Windows installers.
However I belive that a PPA would be too difficult to maintain now (although I would love it too).

@ckorn
Copy link

ckorn commented Feb 24, 2016

Hello,

just tried to create a Debian package for my Ubuntu software site getdeb.net.

Unfortunately, I fail at building the package.
Never built a JS package before actually.

Can someone tell me what is going wrong here?

   debian/rules override_dh_auto_build
make[1]: Entering directory '/home/korn/packages/abri/abricotine-0.2.2'
# Remove interactive part
sed -i '36,41d;' scripts/packager.js
sed -i "36i var arch = \"x64\"," scripts/packager.js
npm install

> Abricotine@0.2.2 postinstall /home/korn/packages/abri/abricotine-0.2.2
> electron-rebuild && bower install

sh: 1: electron-rebuild: not found

npm ERR! Abricotine@0.2.2 postinstall: `electron-rebuild && bower install`
npm ERR! Exit status 127
npm ERR! 
npm ERR! Failed at the Abricotine@0.2.2 postinstall script.
npm ERR! This is most likely a problem with the Abricotine package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     electron-rebuild && bower install
npm ERR! You can get their info via:
npm ERR!     npm owner ls Abricotine
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.2.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/korn/packages/abri/abricotine-0.2.2
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/korn/packages/abri/abricotine-0.2.2/npm-debug.log
npm ERR! not ok code 0

Took the Arch PKGBUILD as starting point:
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=abricotine

@ckorn
Copy link

ckorn commented Feb 24, 2016

Don't tell me first ALL of this needs to be packaged :O

$ npm2deb depends -b -r electron-packager
Dependencies:
NPM                                               Debian
electron-packager (5.2.1)                         None
├─ asar (^0.8.2)                                  None
│  ├─ chromium-pickle-js (^0.1.0)                 None
│  ├─ commander (^2.9.0)                          node-commander (2.4.0-1)
│  ├─ cuint (^0.2.1)                              None
│  ├─ glob (^6.0.4)                               node-glob (4.0.5-1)
│  ├─ minimatch (^3.0.0)                          node-minimatch (1.0.0-1)
│  ├─ mkdirp (^0.5.0)                             node-mkdirp (0.5.0-1)
│  └─ mksnapshot (^0.1.0)                         None
│     ├─ decompress-zip (0.1.0)                   None
│     │  ├─ binary (^0.3.0)                       None
│     │  │  ├─ buffers (~0.1.1)                   None
│     │  │  └─ chainsaw (~0.1.0)                  node-chainsaw (0.1.0-1)
│     │  ├─ graceful-fs (^3.0.0)                  node-graceful-fs (3.0.2-1)
│     │  ├─ mkpath (^0.1.0)                       None
│     │  ├─ nopt (^3.0.1)                         node-nopt (3.0.1-1)
│     │  ├─ q (^1.1.2)                            node-q (1.4.1-1)
│     │  ├─ readable-stream (^1.1.8)              None
│     │  │  ├─ core-util-is (~1.0.0)              None
│     │  │  ├─ inherits (~2.0.1)                  node-inherits (2.0.1-3)
│     │  │  ├─ isarray (0.0.1)                    None
│     │  │  ├─ process-nextick-args (~1.0.6)      None
│     │  │  ├─ string_decoder (~0.10.x)           None
│     │  │  └─ util-deprecate (~1.0.1)            None
│     │  └─ touch (0.0.3)                         None
│     │     └─ nopt (~1.0.10)                     node-nopt (3.0.1-1)
│     ├─ fs-extra (0.18.2)                        None
│     │  ├─ graceful-fs (^4.1.2)                  node-graceful-fs (3.0.2-1)
│     │  ├─ jsonfile (^2.1.0)                     None
│     │  ├─ klaw (^1.0.0)                         None
│     │  ├─ path-is-absolute (^1.0.0)             None
│     │  └─ rimraf (^2.2.8)                       node-rimraf (2.2.8-1)
│     └─ request (2.55.0)                         node-request (2.26.1-1)
├─ electron-download (^1.0.0)                     None
│  ├─ debug (^2.2.0)                              node-debug (2.1.0+dfsg-2)
│  ├─ home-path (^1.0.1)                          None
│  ├─ minimist (^1.2.0)                           node-minimist (1.1.3-1)
│  ├─ mkdirp (^0.5.0)                             node-mkdirp (0.5.0-1)
│  ├─ mv (^2.0.3)                                 None
│  │  ├─ mkdirp (~0.5.1)                          node-mkdirp (0.5.0-1)
│  │  ├─ ncp (~2.0.0)                             node-ncp (0.6.0-1)
│  │  └─ rimraf (~2.4.0)                          node-rimraf (2.2.8-1)
│  ├─ nugget (^1.5.1)                             None
│  │  ├─ debug (^2.1.3)                           node-debug (2.1.0+dfsg-2)
│  │  ├─ minimist (^1.1.0)                        node-minimist (1.1.3-1)
│  │  ├─ pretty-bytes (^1.0.2)                    None
│  │  │  └─ number-is-nan (^1.0.0)                None
│  │  ├─ progress-stream (^1.1.0)                 None
│  │  │  ├─ speedometer (~0.1.2)                  None
│  │  │  └─ through2 (~0.2.3)                     node-through2 (1.1.1-1)
│  │  ├─ request (^2.45.0)                        node-request (2.26.1-1)
│  │  ├─ single-line-log (^0.4.1)                 None
│  │  └─ throttleit (0.0.2)                       None
│  ├─ path-exists (^1.0.0)                        None
│  │  └─ pinkie-promise (^2.0.0)                  None
│  │     └─ pinkie (^2.0.0)                       None
│  └─ rc (^1.1.2)                                 None
│     ├─ deep-extend (~0.4.0)                     None
│     ├─ ini (~1.3.0)                             node-ini (1.1.0-1)
│     ├─ minimist (^1.2.0)                        node-minimist (1.1.3-1)
│     └─ strip-json-comments (~1.0.4)             node-strip-json-comments (1.0.2-1)
├─ extract-zip (^1.0.3)                           None
│  ├─ concat-stream (1.5.0)                       None
│  │  ├─ inherits (~2.0.1)                        node-inherits (2.0.1-3)
│  │  ├─ readable-stream (~2.0.0)                 None
│  │  └─ typedarray (~0.0.5)                      None
│  ├─ debug (0.7.4)                               node-debug (2.1.0+dfsg-2)
│  ├─ mkdirp (0.5.0)                              node-mkdirp (0.5.0-1)
│  └─ yauzl (2.4.1)                               node-yauzl (2.1.0-1)
├─ get-package-info (0.0.2)                       None
│  ├─ bluebird (^3.1.1)                           None
│  ├─ lodash.get (^4.0.0)                         None
│  │  └─ lodash.tostring (^4.0.0)                 None
│  └─ resolve (^1.1.6)                            node-resolve (0.3.1-1)
├─ minimist (^1.1.1)                              node-minimist (1.1.3-1)
├─ mkdirp (^0.5.0)                                node-mkdirp (0.5.0-1)
├─ mv (^2.0.3)                                    None
├─ ncp (^2.0.0)                                   node-ncp (0.6.0-1)
├─ plist (^1.1.0)                                 None
│  ├─ base64-js (0.0.8)                           None
│  ├─ util-deprecate (1.0.2)                      None
│  ├─ xmlbuilder (4.0.0)                          None
│  │  └─ lodash (^4.0.0)                          node-lodash (2.4.1+dfsg-3)
│  └─ xmldom (0.1.x)                              None
├─ rcedit (^0.3.0)                                None
├─ resolve (^1.1.6)                               node-resolve (0.3.1-1)
├─ rimraf (^2.3.2)                                node-rimraf (2.2.8-1)
└─ run-series (^1.1.1)                            None

@brrd
Copy link
Owner

brrd commented Feb 25, 2016

Why don't you create the deb from the linux x64 prebuild binary?

All those dependencies are node modules, they are packaged in the app when you build it. Not to be confused with deb dependencies.

You may find interesting information in Electron documentation.

@ckorn
Copy link

ckorn commented Feb 27, 2016

Is there also a x86 prebuild binary?

@brrd
Copy link
Owner

brrd commented Feb 29, 2016

@ckorn Yes, it's the ia32 release. But we still have issues with this build. See #6.

@jeremy447
Copy link

If you make a Flatpak package (#78), making a .deb is not needed since Flatpak work across distro.

http://flatpak.org/getting.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants