amanharwara / altus

Desktop client for WhatsApp Web with themes, notifications and multiple account support
GNU General Public License v3.0
476 stars 65 forks source link

PKGBUILD for Arch-based distributions #164

Closed ngmoviedo closed 2 years ago

ngmoviedo commented 2 years ago

I have created a simple PKGBUILD for better integration into Arch-based distributions. At the moment it just downloads and sets up the AppImage. I might try to program a version that compiles the source code using native dependencies, but I wasn't sure about the compilation process for Electron apps.

Here it is. Let me know what you think. altus-appimage-pkgbuild

ngmoviedo commented 2 years ago

And a few minutes later I discover that someone has uploaded an almost identical PKGBUILD to the AUR a month ago. Oh well... I'll remember to check next time.

amanharwara commented 2 years ago

I'll try out this when I get time. I wasn't aware about that other pkgbuild either.

but I wasn't sure about the compilation process for Electron apps.

The way you build Altus's AppImage would be something like this:

$ yarn
$ yarn build

This installs the dependencies, builds the frontend svelte code and then builds the final AppImage.

If you wanted more control over either the svelte code compilation or electron compilation, you could do this:

$ yarn
$ yarn svelte-build
$ electron-builder

Of course you'd need yarn to be globally installed through npm i -g or pacman.

amanharwara commented 2 years ago

If electron-builder isn't installed globally, that will need to be yarn electron-builder