airgap-it / airgap-vault

The AirGap Vault is installed on a spare smartphone that has no connection to any network, thus it is air gapped. This app handles the private key.
MIT License
391 stars 108 forks source link

creating a .deb package after npm commands #156

Open sebek0F9 opened 2 years ago

sebek0F9 commented 2 years ago

i see the airgap-distro hasn't been updated in a while.

v1.3.1 has a deb package for x86 only.

i followed the instructions using npm in the readme.

now i want to create a deb file of this project. (i can edit the airgap-distro script for myself to use this custom deb).

my end goal is to use the vault as a live usb, on either arm64 or amd64. not sure yet which one. anyway, i want to make the deb file to use with the airgap-distro script.

i tried debmake and equivs-build which creates a deb file, only with man pages inside.

can someone guide me?

AndreasGassmann commented 2 years ago

We discontinued the airgap-distro because of the lack of interest back in the day, but we would be interested in reviving it if we can fully automate it. Any help here would be appreciated.

Our CI (GitHub Actions) already builds a linux distribution, but it's an AppImage. Does that also work? Otherwise, I'm sure the build config of electron can be tweaked to make it output a deb file.

You can see the artifacts of the CI here: https://github.com/airgap-it/airgap-vault/actions/runs/2947902323 And the build script for the CI is here: https://github.com/airgap-it/airgap-vault/blob/master/.github/workflows/build.yml#L245

I think back in the day this config was used, but the current electron build might not use the same location for the config anymore: https://github.com/airgap-it/airgap-vault/blob/master/package.json#L175

sebek0F9 commented 2 years ago

Nice. Thanks, I will check further. I think the app image would work. I will post any kind of progress I make to hopefully contribute

THOUSAND-SKY commented 1 year ago

The app image just shows a white screen and prints an error

(node:110714) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open './capacitor.config.json'

Adding that file did hide the error, but screen is still just white.

Did anyone get that to work?

The-Coomer commented 7 months ago

This is still a problem over a year later, is there any chance we can run Airgap Vault on a regular device instead of a mobile phone?