Open kimimaru4000 opened 1 year ago
The error message is probably a bit confusing in this case. You likely want to change your fpm file to this:
-s dir
--name trbot
--license agpl3
--version 2.6.0
--architecture x86_64
--description "Powerful software for playing games through text, supporting remote collaborative play."
--url "https://codeberg.org/kimimaru/TRBot"
--maintainer kimimaru
"trbot2_6_pkg"
A diff of my suggested fpm file and yours looks something like this:
-s dir
---directories "trbot2_6_pkg"
--name trbot
--license agpl3
--version 2.6.0
--architecture x86_64
--description "Powerful software for playing games through text, supporting remote collaborative play."
--url "https://codeberg.org/kimimaru/TRBot"
--maintainer kimimaru
+"trbot2_6_pkg"
To add some more detail: fpm uses the word 'parameter' to describe arguments that are not flags. So --name trbot
is a flag, for example. A parameter would not have a --name
dashed prefix and parameters don't have names.
The --directories
flag doesn't tell fpm what files to package. It tells fpm what directories should be owned by package we are creating. Directory ownership in packages is an odd thing that most of the time you won't need to worry about as fpm tries hard to make it so you don't need to worry about it.
Sorry for the confusion. Can you try my suggested fpm file and let me know if that helps?
I'm brand new to FPM and I'm attempting to build a deb file out of an executable.
The directory structure is like this:
Here is my FPM file:
I get this output from
fpm -t deb -p trbot-2.6.0-1-x86_64.deb
:I don't understand what it means by "no parameters given", considering I specified many of them?
The
-s
parameter in particular is very confusing to me. I thought that I can specify a directory that holds the files to use to create the package. However, this is what the documentation says:The way this reads leads me to believe it's intended to build the package from the source code of the directory specified in
-s
. I don't know if this is correct or not.Thanks in advance!