Downloads the latest Windows SQLite3 components and packages them for ease of deployment for Windows development environments.
- Grabs the SQLite Download page and parses the handy
Download product data for scripts to readsection. - Grabs the
sqlite-dll-win32-x86,sqlite-dll-win64-x64andsqlite-amalgamationzip files. - Unpacks the DLL zip files into their own folders; renames the two DLLs from
sqlite3.dlltosqlite3-Win32.dllandsqlite3-x64.dll, modifies eachsqlite3.deffile appropriately. with aLIBRARY ...line. - Runs the Win32 and x64 versions of
libon the modifiessqlite3.deffiles. - Collects the
sqlite3.handsqlite3ext.hfiles, the two DLLs, the 2 lib files for placement in directories of the following structure:
C:\ProgramData -+--> bin : sqlite3-Win32.dll, sqlite3-x64.dll
+--> include : sqlite3.h, sqlite3ext.h
+--> lib -+--> Win32 : sqlite3.lib (implib from mod'd 32-bit def file)
+--> x64 : sqlite3.lib (implib from mod'd 64-bit def file)
The process is orchestrated, with some ability to customize, using batch files that try to find python3 and then use it to configure and make.
Final placement can be done by running make install from a cmd.exe with Administrator privilege, or by executing a makensis install set produced by make package.
The install set comes with an uninstaller, but it also adds the .\bin data from the install target (by default C:\ProgramData\bin) to the defaut system-wide execution path.
The uninstaller does not delete etiher the .\bin, .\include or \lib directory but it will remove the Win32 or x64 directories if they're empty after components are removed.
Also, the uninstaller does not delete .\bin from the execution path.