- Timestamp:
- Jan 20, 2025, 12:57:50 AM (2 days ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Core.pas
r222 r225 146 146 147 147 function TCore.GetAppShareDir(Dir: string): string; 148 {$IFDEF Linux}148 {$IFDEF UNIX} 149 149 var 150 150 NewDir: string; … … 152 152 begin 153 153 Result := ExtractFileDir(Application.ExeName) + DirectorySeparator + Dir; 154 {$IFDEF Linux}154 {$IFDEF UNIX} 155 155 // If installed in Linux system then try to use different installation directory 156 156 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; 158 160 if DirectoryExists(NewDir) then Result := NewDir; 159 161 end; -
trunk/Forms/FormMain.pas
r222 r225 794 794 LastOpenedList1.LoadFromRegistry(RegistryContext); 795 795 796 {$IFDEF Linux}797 // If installed in Linux system then use installation directory for po files798 if Application.ExeName = '/usr/bin/' + ExtractFileNameOnly(Application.ExeName) then799 Core.Core.Translator.POFilesFolder := '/usr/share/' + ExtractFileNameOnly(Application.ExeName) + '/languages';800 {$ENDIF}801 802 796 with TRegistryEx.Create do 803 797 try -
trunk/Install/deb/debian/compat
r135 r225 1 8 1 10 -
trunk/Install/deb/debian/rules
r216 r225 14 14 15 15 override_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 30 24 31 25 %: -
trunk/Install/flatpak
-
Property svn:ignore
set to
.flatpak-builder
build
-
Property svn:ignore
set to
-
trunk/Install/flatpak/net.zdechov.app.AcronymDecoder.yml
r224 r225 27 27 - type: svn 28 28 url: https://svn.zdechov.net/AcronymDecoder/trunk 29 revision: r22 429 revision: r225 30 30 buildsystem: simple 31 31 build-commands: … … 33 33 . /usr/lib/sdk/freepascal/enable.sh 34 34 lazbuild --build-mode=Release --ws=qt5 AcronymDecoder.lpi 35 - install -Dm755 AcronymDecoder -t $FLATPAK_DEST/bin /AcronymDecoder35 - install -Dm755 AcronymDecoder -t $FLATPAK_DEST/bin 36 36 - install -Dm644 Languages/*.po -t $FLATPAK_DEST/share/AcronymDecoder/Languages 37 37 - 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/packages38 - install -Dm644 Install/shared/acronym-decoder.xml -t $FLATPAK_DEST/share/mime/packages 39 39 - install -Dm644 Install/shared/AcronymDecoder.desktop -t $FLATPAK_DEST/share/applications 40 40 - install -Dm644 Images/AcronymDecoder.png -t $FLATPAK_DEST/share/icons/hicolor/256x256/apps -
trunk/Install/snap/snapcraft.yaml
r224 r225 35 35 snapcraftctl build 36 36 lazbuild --build-mode=Release AcronymDecoder.lpi 37 install -Dm755 AcronymDecoder -t $SNAPCRAFT_PART_INSTALL/usr/bin /AcronymDecoder37 install -Dm755 AcronymDecoder -t $SNAPCRAFT_PART_INSTALL/usr/bin 38 38 install -Dm644 Languages/*.po -t $SNAPCRAFT_PART_INSTALL/usr/share/AcronymDecoder/Languages 39 39 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/packages40 install -Dm644 Install/shared/acronym-decoder.xml -t $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages 41 41 install -Dm644 Install/shared/AcronymDecoder.desktop -t $SNAPCRAFT_PART_INSTALL/usr/share/applications 42 42 install -Dm644 Images/AcronymDecoder.png -t $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
Note:
See TracChangeset
for help on using the changeset viewer.