inexorgame-obsolete / deprecated-cube-engine-inexor

UNMAINTAINED: Please have a look at the vulkan-renderer
https://inexor.org
zlib License
11 stars 1 forks source link

Rename executable and proto files #430

Closed aschaeffer closed 6 years ago

aschaeffer commented 7 years ago

In order to improve the automatic startup of Inexor Core instances I would suggest to rename the resulting binaries and proto files according to this schema:

Filename schema Example Description
inexor-core-{type}.exe1 inexor-core-server.exe The executable2
inexor-core-{type}.proto3, 4 inexor-core-server.proto The protobuf descriptor file
  1. Lowercase filenames are more portable
  2. On linux it's unusual to use the .exe file extension but it's not forbidden. But as regular users doesn't start the executable by himself it's better to have the same filename.
  3. The same base name for the executable and the proto file
  4. Use the same filenames for all platforms
Type Description
client The game client
server The game server
bot (Optional) A bot
... more types are possible
Croydon commented 7 years ago

Could this conflict with Wine setups which are trying to execute the .exe file as a Windows binary?

aschaeffer commented 7 years ago

Linux executables have an ELF header and can be identified as linux binary. Windows executables have an PE header. I haven't tested it, but I suppose wine is checking this first.

a-teammate commented 7 years ago

naming the file "..client.exe" would also cut the amount of people trying to click on "inexor.exe"

a-teammate commented 6 years ago

https://www.howtogeek.com/192628/mime-types-explained-why-linux-and-mac-os-x-dont-need-file-extensions/ -> .exe is no problem for linux

aschaeffer commented 6 years ago

:+1: