Recent

Author Topic: Deploy Lazarus apps  (Read 3911 times)

Pudas

  • Newbie
  • Posts: 4
Deploy Lazarus apps
« on: October 21, 2017, 10:33:04 am »
Hi!
I am new to lazarus (but not to Delphi)
I have a lot of Delphi application I would like to share with the Linux community,
so I am translating them to Lazarus, and has allready done so,
but now I cant realy find a simple way to create deb-files...
(should it not bee the eaysiest part to share software within the Linux community...for free..  :-)
(a Delphi *.exe file you can direcltly move to another computer and it will work directly)

I am new to this forum...so my appology if I am asking questions the wrong way/place)
Lazarus 1.4.4, FPC 2.6.4, Kubuntu 14.04

munair

  • Hero Member
  • *****
  • Posts: 798
  • compiler developer @SharpBASIC
    • SharpBASIC
Re: Deploy Lazarus apps
« Reply #1 on: October 21, 2017, 11:19:27 am »
The easiest way is to simply share the binary file (like you would with the .exe file for Windows platforms.

Regarding deb files, what you are asking for is similar to creating an installer for Windows. There is quite some documentation on the internet about how to create deb files. It is outside of the Lazarus scope.

BTW, there is no simple way to create deb files. It requires a directory structure and dependency handling.
« Last Edit: October 21, 2017, 11:36:44 am by Munair »
keep it simple

Pudas

  • Newbie
  • Posts: 4
Re: Deploy Lazarus apps
« Reply #2 on: October 21, 2017, 11:38:37 am »
Thanks...will try that...seemed just to easy :-)
Lazarus 1.4.4, FPC 2.6.4, Kubuntu 14.04

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4467
  • I like bugs.
Re: Deploy Lazarus apps
« Reply #3 on: October 21, 2017, 05:54:22 pm »
Why deb-files? Makes no sense. They are supported only by a subset of Linux distros, mainly Debian and its derivatives. For example I could not install your programs then. And what about BSD systems?

Instead deliver your sources. It works best for different environments. It is easy for you and for users.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: Deploy Lazarus apps
« Reply #4 on: October 21, 2017, 06:07:16 pm »
Note that people coming from windows have no clue about dependency resolving....That's not going to change soon. (not only FPC/Lazarus, but in general).
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Deploy Lazarus apps
« Reply #5 on: October 21, 2017, 06:19:18 pm »
If you don't have problem with canonical, snap format would be a good choice. It's starting as Ubuntu feature, but slowly adopted by other distros. Manjaro has it now, despite not by default. Otherwise just provide a compressed archive. If you're very kind, provide all the following: .deb, .rpm and an AUR entry (or just PKGBUILD). That should cover most distros.

cpicanco

  • Hero Member
  • *****
  • Posts: 618
  • Behavioral Scientist and Programmer
    • Portfolio
Re: Deploy Lazarus apps
« Reply #6 on: October 21, 2017, 07:49:08 pm »
I am using GitHub for sharing binaries and releasing source.
Be mindful and excellent with each other.
https://github.com/cpicanco/

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

Pudas

  • Newbie
  • Posts: 4
Re: Deploy Lazarus apps
« Reply #8 on: October 22, 2017, 10:28:38 am »
Thankyou all!
That's a lot of info. it will take mee some time to process...
...so .deb files is not so easily created (and maybee not wanted...I know there is .rpm distros and source-code as well)
I have seen the MakeDebian software but not made it work yet, but I think this is the way if I stay with the "debian-distro-idea",
(what snap is I have to look in to)
And if I choose to deploy the software as script I should/could use GitHub.

I understand that this is not a clean "lazarus-programming-issue" so I will close this topic now.
Lazarus 1.4.4, FPC 2.6.4, Kubuntu 14.04

 

TinyPortal © 2005-2018