-
Notifications
You must be signed in to change notification settings - Fork 0
/
develop.txt
54 lines (34 loc) · 2.44 KB
/
develop.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Building Bibledit for Windows through Visual Studio.
There is a git repository on Windows 10 and there's one on on macOS.
Keep both repositories in sync.
This ensures that the data on both operating systems are in sync.
Visual Studio is used on Windows for building Bibledit for Windows.
On macOS there's a script that refreshes the source of the Bibledit library.
How to include the SQlite library.
1. Download the native 32 or 64 bits SQLite DLL from http://sqlite.org.
2. Extract the files sqlite3.dll and sqlite3.def and place them in the project’s source folder.
3. Open a “Developer Command Prompt for VS2015” and navigate to this source folder.
4. Create an import library using the following command line: LIB /DEF:sqlite3.def
5. Add the library (that is sqlite3.lib) to the Project Properties -> Configuration Properties -> Linker -> Additional Dependencies.
6. Download SQlite amalgamation with the same version number from http://sqlite.org.
7. Unzip the sqlite3.h header file and place it into the source directory.
You will need to include the sqlite3.dll in the same directory as your program, or in a System Folder.
CefSharp eats all key press events. Handling keyboard events works through a global keyboard hook in Windows.
Folder "server" contains the Bibledit library. Build the Release x64 version from within Visual Studio. It produces server.exe.
Folder "gui" contains the Bibledit interface. Build it from within Visual Studio. It produces bibledit.exe. It puts CefSharp files in the bin folder.
To create a package, use Inno Setup.
It was installed from innosetup-5.5.9-unicode.exe.
Free legal Windows virtual images for testing are available from https://dev.modern.ie/tools/vms/windows/
The server.exe needs the Visual C++ Redistributable Package for Visual Studio 2022.
Inno Setup installs it.
A code signing certificate was purchased from https://www.startssl.com.
The certificate is valid from 2017-01-21 till 2020-04-21.
Two certificates were downloaded from StartSSL:
- Intermediate.crt
- CommonName.crt
The signtool.exe needs a certificate.pfx format:
$ openssl pkcs12 -export -out CommonName.pfx -inkey codesign.key -in CommonName.crt -password pass:""
Copy the .pfx file to the Windows developer machine.
Tutorial for using Microsoft's embedded webcontrol:
https://learn.microsoft.com/en-us/microsoft-edge/webview2/get-started/winforms
https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/distribution?tabs=dotnetcsharp