From cfe43f040fe1bb0048504ca3476fa2e87e6c70e5 Mon Sep 17 00:00:00 2001 From: Salvador Diaz Fau Date: Wed, 6 Jan 2021 18:56:05 +0100 Subject: [PATCH] Added links to CEF binaries for ARM CPUs Removed custom paths in the TinyBrowser2 demo for Linux. Added list of operating systems used to test the demos to the readme file. --- README.md | 9 +++++--- .../TinyBrowser2/TinyBrowser2.lps | 4 ++-- .../TinyBrowser2/uTinyBrowser2.pas | 21 ++----------------- update_CEF4Delphi.json | 2 +- 4 files changed, 11 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 0a7c0f30..c7cdbc2e 100644 --- a/README.md +++ b/README.md @@ -7,12 +7,15 @@ CEF4Delphi uses CEF 87.1.12 which includes Chromium 87.0.4280.88. The CEF binaries used by CEF4Delphi are available for download at spotify : * [Windows 32 bits](https://cef-builds.spotifycdn.com/cef_binary_87.1.12%2Bg03f9336%2Bchromium-87.0.4280.88_windows32.tar.bz2) * [Windows 64 bits](https://cef-builds.spotifycdn.com/cef_binary_87.1.12%2Bg03f9336%2Bchromium-87.0.4280.88_windows64.tar.bz2) -* [Linux 32 bits](https://cef-builds.spotifycdn.com/cef_binary_87.1.12%2Bg03f9336%2Bchromium-87.0.4280.88_linux32.tar.bz2) -* [Linux 64 bits](https://cef-builds.spotifycdn.com/cef_binary_87.1.12%2Bg03f9336%2Bchromium-87.0.4280.88_linux64.tar.bz2) - +* [Linux x86 32 bits](https://cef-builds.spotifycdn.com/cef_binary_87.1.12%2Bg03f9336%2Bchromium-87.0.4280.88_linux32.tar.bz2) +* [Linux x86 64 bits](https://cef-builds.spotifycdn.com/cef_binary_87.1.12%2Bg03f9336%2Bchromium-87.0.4280.88_linux64.tar.bz2) +* [Linux ARM 32 bits](https://cef-builds.spotifycdn.com/cef_binary_87.1.12%2Bg03f9336%2Bchromium-87.0.4280.88_linuxarm.tar.bz2) +* [Linux ARM 64 bits](https://cef-builds.spotifycdn.com/cef_binary_87.1.12%2Bg03f9336%2Bchromium-87.0.4280.88_linuxarm64.tar.bz2) CEF4Delphi was developed and tested on Delphi 10.4.1 and it has been tested in Delphi 7, Delphi XE, Delphi 10, Delphi 10.2, Delphi 10.3 and Lazarus 2.0.10/FPC 3.2.0. CEF4Delphi includes VCL, FireMonkey (FMX) and Lazarus components. +CEF4Delphi demos have been tested in Windows 7, Windows 10, Linux Mint 20 and Raspberry Pi OS. + ## Links * [Installation instructions and more information about CEF4Delphi](https://www.briskbard.com/index.php?lang=en&pageid=cef) * [Developer Forums](https://www.briskbard.com/forum) diff --git a/demos/Lazarus_Linux/TinyBrowser2/TinyBrowser2.lps b/demos/Lazarus_Linux/TinyBrowser2/TinyBrowser2.lps index 786413c9..249d9c12 100644 --- a/demos/Lazarus_Linux/TinyBrowser2/TinyBrowser2.lps +++ b/demos/Lazarus_Linux/TinyBrowser2/TinyBrowser2.lps @@ -18,8 +18,8 @@ - - + + diff --git a/demos/Lazarus_Linux/TinyBrowser2/uTinyBrowser2.pas b/demos/Lazarus_Linux/TinyBrowser2/uTinyBrowser2.pas index 8a454899..71b364f5 100644 --- a/demos/Lazarus_Linux/TinyBrowser2/uTinyBrowser2.pas +++ b/demos/Lazarus_Linux/TinyBrowser2/uTinyBrowser2.pas @@ -93,32 +93,15 @@ begin end; procedure CreateGlobalCEFApp; -var - TempHome, TempBinDir : ustring; begin - TempHome := IncludeTrailingPathDelimiter(GetEnvironmentVariable('HOME')); - TempBinDir := TempHome + 'Lazarus/CEF4Delphi/bin'; - GlobalCEFApp := TCefApplication.Create; GlobalCEFApp.MultiThreadedMessageLoop := False; GlobalCEFApp.ExternalMessagePump := False; GlobalCEFApp.OnContextInitialized := GlobalCEFApp_OnContextInitialized; - GlobalCEFApp.SetCurrentDir := True; - - // This is a workaround for the CEF4Delphi issue #324 : - // https://github.com/salvadordf/CEF4Delphi/issues/324 - GlobalCEFApp.DisableFeatures := 'WinUseBrowserSpellChecker'; - - if DirectoryExists(TempBinDir) then - begin - GlobalCEFApp.FrameworkDirPath := TempBinDir; - GlobalCEFApp.ResourcesDirPath := TempBinDir; - GlobalCEFApp.LocalesDirPath := TempBinDir + '/locales'; - end; // Add a debug log in the BIN directory - GlobalCEFApp.LogFile := 'cef.log'; - GlobalCEFApp.LogSeverity := LOGSEVERITY_VERBOSE; + //GlobalCEFApp.LogFile := 'cef.log'; + //GlobalCEFApp.LogSeverity := LOGSEVERITY_VERBOSE; end; procedure DestroyTinyBrowser; diff --git a/update_CEF4Delphi.json b/update_CEF4Delphi.json index da00d02e..6de64fab 100644 --- a/update_CEF4Delphi.json +++ b/update_CEF4Delphi.json @@ -2,7 +2,7 @@ "UpdateLazPackages" : [ { "ForceNotify" : true, - "InternalVersion" : 224, + "InternalVersion" : 225, "Name" : "cef4delphi_lazarus.lpk", "Version" : "87.1.12.0" }