Recent

Author Topic: Develop for Ubuntu Software catalog with Lazarus?[Solved]  (Read 1282 times)

Robert W.B.

  • Sr. Member
  • ****
  • Posts: 328
  • Love my Wife, My Kids and Lazarus/Freepascal.
Develop for Ubuntu Software catalog with Lazarus?[Solved]
« on: November 18, 2020, 01:21:24 am »
Hi. Is it possible to develop apps with Lazarus for Linux Ubuntus Software catalog with Lazarus and freepascal?
Thanks in advance
Robert
« Last Edit: November 19, 2020, 04:23:57 am by Robert William Blennerhed »
Rob

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Develop for Ubuntu Software catalog with Lazarus?
« Reply #1 on: November 18, 2020, 03:21:36 am »
Short answer, yes.

Long answer, Ubuntu builds most (but not all) of its Repository (I think thats what you are referring to) from the Debian Repository.  They do have a means of taking apps directly but are not especially keen. But Unbuntu also has a facility called PPA (Personal Project Archive ?) where you can put your application in such a way that Ubuntu users can accept it directly through the apt system.

Getting an app into Debian is quite a project, you have very strict legal requirements, all parts must have a clear and approved license. And it needs to be build-able from an officially structured Debian Source package. You will need to seek a Debian mentor to shepherd you through the process.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

mdalacu

  • Full Member
  • ***
  • Posts: 233
    • dmSimpleApps
Re: Develop for Ubuntu Software catalog with Lazarus?
« Reply #2 on: November 18, 2020, 08:11:59 am »
Or you can make a snap and try to publish it ;)

devEric69

  • Hero Member
  • *****
  • Posts: 648
Re: Develop for Ubuntu Software catalog with Lazarus?
« Reply #3 on: November 18, 2020, 08:19:57 am »
short answer = yes.

Ubuntu \ Canonical has an official centralized softwares repository here: https://snapcraft.io/ (queried by the deamon snapd). As the name of its repository site indicates, Ubuntu now promotes the installation of snap packages on its desktop distributions (PPAs remain the norm on server distributions, of course). For information, each snap installation creates an associated mount point.

That said, afaik, basically, a snap can package a *.deb, *.appImage, *.flatpak, or 0install package (package of package i.e. repackaging; ex.: https://forum.snapcraft.io/t/install-existing-deb-file-as-part-of-snap-installation/10822/3)... Strange, but not impossible.

The advantage of creating a snap is to take advantage of the "distribution power" of the Ubuntu's snap store (e.g. Apple store, or Windows store). In other words, it allows to publish a binary software package by being correctly referenced, indexed in their store-catalog, and then installable from their store-catalog, without having to rely only on a good Google ranking for example.
« Last Edit: November 18, 2020, 12:43:36 pm by devEric69 »
use: Linux 64 bits (Ubuntu 20.04 LTS).
Lazarus version: 2.0.4 (svn revision: 62502M) compiled with fpc 3.0.4 - fpDebug \ Dwarf3.

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Develop for Ubuntu Software catalog with Lazarus?
« Reply #4 on: November 19, 2020, 12:13:12 am »
Of Snaps and Flatpacks ....

I looked at the flatpack model and could not see a way to make it work with my app and perhaps even with a Lazarus app. Be very interested in hearing from other users.

I get the impression that Snaps are less popular than Flatpack but poor old Cannonical won't give up. The issue I see is they are a huge disk eating machine, needing to have a complete GTK2 (or Qt5) Snap installed as well. Even if the system already has GTK2 installed in a regular mode.  My end users apparently were quite welcoming of my PPA, not had any Snap requests recently.

I would love to hear what other people's thoughts are, I have only looked at both Flatpack and Snap very superficially.

Davo 
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Robert W.B.

  • Sr. Member
  • ****
  • Posts: 328
  • Love my Wife, My Kids and Lazarus/Freepascal.
Re: Develop for Ubuntu Software catalog with Lazarus?
« Reply #5 on: November 19, 2020, 04:23:23 am »
Thanks for the answers.
Sincerely
Old Bob
Rob

Chronos

  • Full Member
  • ***
  • Posts: 240
    • PascalClassLibrary
Re: Develop for Ubuntu Software catalog with Lazarus?[Solved]
« Reply #6 on: May 12, 2021, 10:27:49 pm »
The process of creation of Ubuntu snap packages is now documented on wiki https://wiki.freepascal.org/Create_snap_package
Related discussion https://forum.lazarus.freepascal.org/index.php/topic,54346.msg403642.html

 

TinyPortal © 2005-2018