squalou / google-chat-linux

source of a fork of google-chat-linux unofficial client from robyf
50 stars 10 forks source link

rpm build failed #82

Closed squalou closed 9 months ago

squalou commented 9 months ago

Hi @pbabinca I 've just tried a tag to trigger the action. It failed, I don't know if you can see the logs in this repo so, here they are

 google-chat-linux@5.27.22-2 dist:rpm
> electron-builder --linux=rpm

  • electron-builder  version=24.4.0 os=10.0.20348
  • artifacts will be published  reason=tag is defined tag=5.27.22-2
  • loaded configuration  file=package.json ("build" field)
  • executing @electron/rebuild  arch=x64 version=27.0.3 appDir=D:\a\google-chat-linux\google-chat-linux
  • packaging       platform=linux arch=x64 electron=27.0.3 appOutDir=dist\linux-unpacked
  • downloading     url=https://github.com/electron/electron/releases/download/v27.0.3/electron-v27.0.3-linux-x64.zip size=100 MB parts=8
  • downloaded      url=https://github.com/electron/electron/releases/download/v27.0.3/electron-v27.0.3-linux-x64.zip duration=1.279s
  • building        target=rpm arch=x64 file=dist\google-chat-linux-5.27.22-2.x86_64.rpm
  ⨯ cannot execute  cause=exec: "fpm": executable file not found in %PATH%
                    command=fpm -s dir --force -t rpm -d gtk3 -d libnotify -d nss -d libXScrnSaver -d libXtst -d xdg-utils -d at-spi2-core -d libuuid --rpm-os linux --rpm-compression xzmt --architecture amd64 --after-install 'C:\Users\RUNNER~1\AppData\Local\Temp\t-Oba7yb\0-after-install' --after-remove 'C:\Users\RUNNER~1\AppData\Local\Temp\t-Oba7yb\1-after-remove' --description 'Unofficial alternative Google Chat desktop app' --version 5.27.22-2 --package 'D:\a\google-chat-linux\google-chat-linux\dist\google-chat-linux-5.27.22-2.x86_64.rpm' --name google-chat-linux --maintainer 'Roberto Fasciolo <rob@robyf.net>' --url https://github.com/squalou/google-chat-linux --vendor 'Roberto Fasciolo <rob@robyf.net>' --license WTFPL '--rpm-rpmbuild-define=_build_id_links none' 'D:\a\google-chat-linux\google-chat-linux\dist\linux-unpacked/=/opt/google-chat-linux' 'D:\a\google-chat-linux\google-chat-linux\build\icons\48.png=/usr/share/icons/hicolor/48x48/apps/google-chat-linux.png' 'D:\a\google-chat-linux\google-chat-linux\build\icons\64.png=/usr/share/icons/hicolor/64x64/apps/google-chat-linux.png' 'D:\a\google-chat-linux\google-chat-linux\build\icons\256.png=/usr/share/icons/hicolor/256x256/apps/google-chat-linux.png' 'C:\Users\RUNNER~1\AppData\Local\Temp\t-Oba7yb\2-google-chat-linux.desktop=/usr/share/applications/google-chat-linux.desktop'
                    workingDir=
Error: Process completed with exit code 1.
squalou commented 9 months ago

cannot execute cause=exec: "fpm": executable file not found in %PATH% is easy to understand but no idea how to fix it. (no idea what fpm was until 5 minutes ago :) )

squalou commented 9 months ago

probably sudo gem install fpm is enough but hell, I hate Actions syntax

pbabinca commented 9 months ago

I'm sorry to hear that. I'm curious if this https://github.com/jordansissel/fpm/issues/1801#issuecomment-919877499 won't help?

Or did you managed to fix that?

squalou commented 9 months ago

I'm almost done.

The main issue is windows build in matrix build system, syntax is weird to make sure rpm is not built on windows.

But now ... rpm build works but rpm itself is "not found" when published to release.

Also, I have a side effect of adding SHA512 of deb and rpm in the same file : it breaks further my Arch packaging system :) but that's easy enough to fix

squalou commented 9 months ago

damn, rpm is named .x86_64.rpm :-) that's why file not found (instead of _) and also a heading - instead of _ :D