Changeset 17 for trunk


Ignore:
Timestamp:
Mar 22, 2018, 9:32:50 PM (7 years ago)
Author:
chronos
Message:
  • Fixed: Build deb package with project in Release mode.
  • Fixed: Search locales in different location if installed as linux application.
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/DbEngines/UEngineXML.pas

    r15 r17  
    309309    if Command = 'FROM' then begin
    310310      TableName := GetNextPart(Text);
    311     end;
     311    end else raise Exception.Create('No table specified with FROM');
    312312    Table := Database.Tables.SearchByName(TableName);
    313313    if Assigned(Table) then begin
  • trunk/Forms/UFormMain.pas

    r16 r17  
    3737var
    3838  FormMain: TFormMain;
     39
    3940
    4041implementation
  • trunk/Install/deb/debian/control

    r16 r17  
    33Section: utils
    44Priority: optional
    5 Standards-Version: 1.5.0
     5Standards-Version: 1.0.0
    66Build-Depends: fpc, lazarus, lcl, lcl-utils, debhelper (>= 8)
    77
  • trunk/Install/deb/debian/rules

    r16 r17  
    1111
    1212override_dh_auto_build:
    13         lazbuild --build-mode=Release --cpu=$DEB_TARGET_ARCH_CPU --operating-system=$DEB_TARGET_ARCH_OS MyData.lpi
     13        lazbuild --build-mode=Release MyData.lpi
    1414
    1515override_dh_auto_install:
  • trunk/MyData.lpi

    r16 r17  
    2828          <SearchPaths>
    2929            <IncludeFiles Value="$(ProjOutDir)"/>
    30             <OtherUnitFiles Value="Forms"/>
     30            <OtherUnitFiles Value="Forms;DbEngines;/usr/lib/mysql/;/usr/lib64/mysql/"/>
    3131            <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)-$(BuildMode)"/>
    3232          </SearchPaths>
  • trunk/UCore.pas

    r16 r17  
    224224begin
    225225  if not Initialized then begin
     226    {$IFDEF Linux}
     227    // If installed in Linux system then use installation directory for po files
     228    if Application.ExeName = '/usr/bin/MyData' then
     229      CoolTranslator1.POFilesFolder := '/usr/share/MyData/languages';
     230    {$ENDIF}
    226231    InitDataTypes;
    227232    InitEngines;
Note: See TracChangeset for help on using the changeset viewer.