kitze / twizzle

A desktop app for Twitter DM & composing tweets from the menubar. Works on macOS, Windows, and Linux.
https://twizzle.app
MIT License
279 stars 15 forks source link

Publishing on AUR #7

Open talentlessguy opened 4 years ago

talentlessguy commented 4 years ago

Is it ok if I publish twizzle to AUR?

so it will be possible to install it like on Arch Linux based distros:

yay -S twizzle

arch wiki link

kitze commented 4 years ago

hmm, sure? It wouldn't hurt I guess

talentlessguy commented 4 years ago

EDIT: Issue resolved, I needed to add env SHELL=bash

Unfortunately it doesn't build :(

❯ yarn electron-pack --linux pacman
yarn run v1.19.1
$ yarn electron-builder --linux pacman
$ /home/v1rtl/twizzle/node_modules/.bin/electron-builder --linux pacman
  • electron-builder  version=21.2.0 os=4.19.85-1-MANJARO
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=dist/builder-effective-config.yaml
  • packaging       platform=linux arch=x64 electron=6.1.2 appOutDir=dist/linux-unpacked
  • building        target=pacman arch=x64 file=dist/twizzle-1.2.5.pacman
  • application Linux category is set to default "Utility"  reason=linux.category is not set and cannot map from macOS docs=https://www.electron.build/configuration/linux
  • downloading     url=https://github.com/electron-userland/electron-builder-binaries/releases/download/fpm-1.9.3-2.3.1-linux-x86_64/fpm-1.9.3-2.3.1-linux-x86_64.7z size=5.0 MB parts=1
  • downloaded      url=https://github.com/electron-userland/electron-builder-binaries/releases/download/fpm-1.9.3-2.3.1-linux-x86_64/fpm-1.9.3-2.3.1-linux-x86_64.7z duration=7.307s
  ⨯ cannot execute  cause=exit status 1
                    out={:timestamp=>"2019-12-04T00:38:23.033575+0300", :message=>"Process failed: /usr/bin/fish failed (exit code 127). Full command was:[\"/usr/bin/fish\", \"-c\", \"LANG=C bsdtar -czf .MTREE --format=mtree --options='!all,use-set,type,uid,gid,mode,time,size,md5,sha256,link' .INSTALL .PKGINFO usr opt\"]", :level=>:error}

                    command=/home/v1rtl/.cache/electron-builder/fpm/fpm-1.9.3-2.3.1-linux-x86_64/fpm -s dir --force -t pacman -d c-ares -d ffmpeg -d gtk3 -d http-parser -d libevent -d libvpx -d libxslt -d libxss -d minizip -d nss -d re2 -d snappy -d libnotify -d libappindicator-gtk3 -d libappindicator-sharp --pacman-compression xz --architecture amd64 --name twizzle --after-install /tmp/t-6CfwzP/0-after-install --after-remove /tmp/t-6CfwzP/1-after-remove --description '
     Focus on messaging and tweeting' --version 1.2.5 --package /home/v1rtl/twizzle/dist/twizzle-1.2.5.pacman --maintainer 'Kitze <kristijan.mkd@gmail.com>' --url http://./ --vendor 'Kitze <kristijan.mkd@gmail.com>' --license MIT /home/v1rtl/twizzle/dist/linux-unpacked/=/opt/Twizzle /home/v1rtl/twizzle/dist/.icon-set/icon_16x16.png=/usr/share/icons/hicolor/16x16/apps/twizzle.png /home/v1rtl/twizzle/dist/.icon-set/icon_32x32.png=/usr/share/icons/hicolor/32x32/apps/twizzle.png /home/v1rtl/twizzle/dist/.icon-set/icon_48x48.png=/usr/share/icons/hicolor/48x48/apps/twizzle.png /home/v1rtl/twizzle/dist/.icon-set/icon_64x64.png=/usr/share/icons/hicolor/64x64/apps/twizzle.png /home/v1rtl/twizzle/dist/.icon-set/icon_128x128.png=/usr/share/icons/hicolor/128x128/apps/twizzle.png /home/v1rtl/twizzle/dist/.icon-set/icon_256.png=/usr/share/icons/hicolor/256x256/apps/twizzle.png /home/v1rtl/twizzle/dist/.icon-set/icon_512.png=/usr/share/icons/hicolor/512x512/apps/twizzle.png /tmp/t-6CfwzP/2-Twizzle.desktop=/usr/share/applications/twizzle.desktop
                    workingDir=
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
talentlessguy commented 4 years ago

Okay, I've built it and installed it manually, now it's time to write PKGBUILD

To install manually I used this:

yarn
yarn build-all
env SHELL=bash yarn electron-pack --linux pacman
cd dist
sudo pacman -U twizzle-1.2.5.pacman