Changeset 225


Ignore:
Timestamp:
Jan 20, 2025, 12:57:50 AM (2 days ago)
Author:
chronos
Message:
  • Fixed: Detect relative Linux share application path.
  • Fixed: Package install scripts.
Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Core.pas

    r222 r225  
    146146
    147147function TCore.GetAppShareDir(Dir: string): string;
    148 {$IFDEF Linux}
     148{$IFDEF UNIX}
    149149var
    150150  NewDir: string;
     
    152152begin
    153153  Result := ExtractFileDir(Application.ExeName) + DirectorySeparator + Dir;
    154   {$IFDEF Linux}
     154  {$IFDEF UNIX}
    155155  // If installed in Linux system then try to use different installation directory
    156156  if not DirectoryExists(Result) then begin
    157     NewDir := '/usr/share/' + ExtractFileNameOnly(Application.ExeName) + DirectorySeparator + Dir;
     157    NewDir := ExtractFileDir(Application.ExeName) + DirectorySeparator + '..' +
     158      DirectorySeparator + 'share' + DirectorySeparator +
     159      ExtractFileNameOnly(Application.ExeName) + DirectorySeparator + Dir;
    158160    if DirectoryExists(NewDir) then Result := NewDir;
    159161  end;
  • trunk/Forms/FormMain.pas

    r222 r225  
    794794  LastOpenedList1.LoadFromRegistry(RegistryContext);
    795795
    796   {$IFDEF Linux}
    797   // If installed in Linux system then use installation directory for po files
    798   if Application.ExeName = '/usr/bin/' + ExtractFileNameOnly(Application.ExeName) then
    799     Core.Core.Translator.POFilesFolder := '/usr/share/' + ExtractFileNameOnly(Application.ExeName) + '/languages';
    800   {$ENDIF}
    801 
    802796  with TRegistryEx.Create do
    803797  try
  • trunk/Install/deb/debian/compat

    r135 r225  
    1 8
     110
  • trunk/Install/deb/debian/rules

    r216 r225  
    1414
    1515override_dh_auto_install:
    16         install -d -m 755 $(ROOT)/usr/bin
    17         install -s -m 755 AcronymDecoder $(ROOT)/usr/bin
    18         install -d -m 755 $(ROOT)/usr/share/AcronymDecoder/languages
    19         install -m 644 Languages/AcronymDecoder.pot $(ROOT)/usr/share/AcronymDecoder/languages
    20         install -m 644 Languages/AcronymDecoder.cs.po $(ROOT)/usr/share/AcronymDecoder/languages
    21         install -d -m 755 $(ROOT)/usr/share/AcronymDecoder/Examples
    22         @install -D -m 644 Examples/* $(ROOT)/usr/share/AcronymDecoder/Examples || true
    23         install -d -m 755 $(ROOT)/usr/share/mime/packages
    24         install -m 644 Install/shared/acronym-decoder.xml $(ROOT)/usr/share/mime/packages
    25         install -d -m 755 $(ROOT)/usr/share/applications
    26         install -m 755 Install/shared/AcronymDecoder.desktop $(ROOT)/usr/share/applications
    27         install -d -m 755 $(ROOT)/usr/share/pixmaps
    28         install -m 644 Images/AcronymDecoder.png $(ROOT)/usr/share/pixmaps
    29         install -m 644 Images/AcronymDecoder.png $(ROOT)/usr/share/pixmaps/application-adp.png
     16        install -Dm755 AcronymDecoder -t $(ROOT)/usr/bin
     17        install -Dm644 Languages/*.po -t $(ROOT)/usr/share/AcronymDecoder/Languages
     18        install -Dm644 Packages/Common/Languages/*.po -t $(ROOT)/usr/share/AcronymDecoder/Languages
     19        install -Dm644 Install/shared/acronym-decoder.xml -t $(ROOT)/usr/share/mime/packages
     20        install -Dm644 Install/shared/AcronymDecoder.desktop -t $(ROOT)/usr/share/applications
     21        install -Dm644 Images/AcronymDecoder.png -t $(ROOT)/usr/share/icons/hicolor/256x256/apps
     22        install -Dm644 Images/AcronymDecoder.png $(ROOT)/usr/share/pixmaps/application-adp.png
     23        install -Dm644 Examples/*.adp -t $(ROOT)/usr/share/AcronymDecoder/Examples
    3024
    3125%:
  • trunk/Install/flatpak

    • Property svn:ignore set to
      .flatpak-builder
      build
  • trunk/Install/flatpak/net.zdechov.app.AcronymDecoder.yml

    r224 r225  
    2727      - type: svn
    2828        url: https://svn.zdechov.net/AcronymDecoder/trunk
    29         revision: r224
     29        revision: r225
    3030    buildsystem: simple
    3131    build-commands:
     
    3333        . /usr/lib/sdk/freepascal/enable.sh
    3434        lazbuild --build-mode=Release --ws=qt5 AcronymDecoder.lpi
    35       - install -Dm755 AcronymDecoder -t $FLATPAK_DEST/bin/AcronymDecoder
     35      - install -Dm755 AcronymDecoder -t $FLATPAK_DEST/bin
    3636      - install -Dm644 Languages/*.po -t $FLATPAK_DEST/share/AcronymDecoder/Languages
    3737      - install -Dm644 Packages/Common/Languages/*.po -t $FLATPAK_DEST/share/AcronymDecoder/Languages
    38       - install -Dm644 Install/shared/acronym-decoder.xml -D $FLATPAK_DEST/share/mime/packages
     38      - install -Dm644 Install/shared/acronym-decoder.xml -t $FLATPAK_DEST/share/mime/packages
    3939      - install -Dm644 Install/shared/AcronymDecoder.desktop -t $FLATPAK_DEST/share/applications
    4040      - install -Dm644 Images/AcronymDecoder.png -t $FLATPAK_DEST/share/icons/hicolor/256x256/apps
  • trunk/Install/snap/snapcraft.yaml

    r224 r225  
    3535      snapcraftctl build
    3636      lazbuild --build-mode=Release AcronymDecoder.lpi
    37       install -Dm755 AcronymDecoder -t $SNAPCRAFT_PART_INSTALL/usr/bin/AcronymDecoder
     37      install -Dm755 AcronymDecoder -t $SNAPCRAFT_PART_INSTALL/usr/bin
    3838      install -Dm644 Languages/*.po -t $SNAPCRAFT_PART_INSTALL/usr/share/AcronymDecoder/Languages
    3939      install -Dm644 Packages/Common/Languages/*.po -t $SNAPCRAFT_PART_INSTALL/usr/share/AcronymDecoder/Languages
    40       install -Dm644 Install/shared/acronym-decoder.xml -D $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
     40      install -Dm644 Install/shared/acronym-decoder.xml -t $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
    4141      install -Dm644 Install/shared/AcronymDecoder.desktop -t $SNAPCRAFT_PART_INSTALL/usr/share/applications
    4242      install -Dm644 Images/AcronymDecoder.png -t $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
Note: See TracChangeset for help on using the changeset viewer.