[libgda] Package the SQLCipher provider for Windows



commit 1a780a859600bf2e4aab0b8880a0d65d4227ecd8
Author: Vivien Malerba <malerba gnome-db org>
Date:   Fri Aug 24 22:47:05 2012 +0200

    Package the SQLCipher provider for Windows

 installers/Windows/gda-browser-tmpl.nsi |    6 +++++-
 installers/Windows/make-zip-setup.sh    |   20 +++++++++++++++++++-
 2 files changed, 24 insertions(+), 2 deletions(-)
---
diff --git a/installers/Windows/gda-browser-tmpl.nsi b/installers/Windows/gda-browser-tmpl.nsi
index 0b7ba5d..0772720 100644
--- a/installers/Windows/gda-browser-tmpl.nsi
+++ b/installers/Windows/gda-browser-tmpl.nsi
@@ -4,7 +4,7 @@
 !define PRODUCT_NAME "GdaBrowser"
 !define PRODUCT_PUBLISHER "Gnome-Db"
 !define PRODUCT_WEB_SITE "http://www.gnome-db.org";
-!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\gda-browser-4.0.exe"
+!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\gda-browser-5.0.exe"
 !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
 !define PRODUCT_UNINST_ROOT_KEY "HKLM"
 
@@ -22,6 +22,7 @@ SetCompressor lzma
 !include "prov_mdb.nsh"
 !include "prov_oracle.nsh"
 !include "prov_sqlite.nsh"
+!include "prov_sqlcipher.nsh"
 !include "uninst.nsh"
 
 
@@ -116,6 +117,8 @@ LangString DESC_prov_oracle ${LANG_ENGLISH} "Oracle database provider (needs run
 LangString DESC_prov_oracle ${LANG_FRENCH} "Fournisseur pour les bases de donné Oracle (néssite un composant fourni par Oracle)"
 LangString DESC_prov_sqlite ${LANG_ENGLISH} "Sqlite database provider"
 LangString DESC_prov_sqlite ${LANG_FRENCH} "Fournisseur pour les bases de donné Sqlite"
+LangString DESC_prov_sqlcipher ${LANG_ENGLISH} "SQLCipher database provider"
+LangString DESC_prov_sqlcipher ${LANG_FRENCH} "Fournisseur pour les bases de donné SQLCipher"
 LangString DESC_prov_web ${LANG_ENGLISH} "Provider for database accessed through a web server"
 LangString DESC_prov_web ${LANG_FRENCH} "Fournisseur pour les bases de donné via un serveur web"
 LangString DESC_prov_ldap ${LANG_ENGLISH} "Provider for LDAP directory"
@@ -131,6 +134,7 @@ LangString DESC_prov_ldap ${LANG_FRENCH} "Fournisseur pour les r
   !insertmacro MUI_DESCRIPTION_TEXT ${SEC05} $(DESC_prov_postgresql)
   !insertmacro MUI_DESCRIPTION_TEXT ${SEC06} $(DESC_prov_oracle)
   !insertmacro MUI_DESCRIPTION_TEXT ${SEC07} $(DESC_prov_sqlite)
+  !insertmacro MUI_DESCRIPTION_TEXT ${SEC10} $(DESC_prov_sqlcipher)
   !insertmacro MUI_DESCRIPTION_TEXT ${SEC08} $(DESC_prov_web)
   !insertmacro MUI_DESCRIPTION_TEXT ${SEC09} $(DESC_prov_ldap)
 !insertmacro MUI_FUNCTION_DESCRIPTION_END
diff --git a/installers/Windows/make-zip-setup.sh b/installers/Windows/make-zip-setup.sh
index 8477dbc..9853969 100755
--- a/installers/Windows/make-zip-setup.sh
+++ b/installers/Windows/make-zip-setup.sh
@@ -54,7 +54,7 @@ fi
 archive=${current_dir}/libgda-${version}.zip
 archive_dev=${current_dir}/libgda-dev-${version}.zip
 archive_ext=${current_dir}/libgda-dep-${version}.zip
-nshfiles=(core.nsh prov_bdb.nsh prov_mdb.nsh prov_mysql.nsh prov_oracle.nsh prov_postgresql.nsh prov_sqlite.nsh prov_web.nsh prov_ldap.nsh)
+nshfiles=(core.nsh prov_bdb.nsh prov_mdb.nsh prov_mysql.nsh prov_oracle.nsh prov_postgresql.nsh prov_sqlite.nsh prov_sqlcipher.nsh prov_web.nsh prov_ldap.nsh)
 tmpfile=`mktemp`
 
 # remove current archive if it exists
@@ -293,6 +293,12 @@ Section "Ldap" SEC09
   SetOverwrite try
 EOF
 
+cat > prov_sqlcipher.nsh <<EOF
+Section "SQLCipher" SEC10
+  SetOutPath "\$INSTDIR\bin"
+  SetOverwrite try
+EOF
+
 cat > config.nsh <<EOF
 !define PRODUCT_VERSION "$version"
 EOF
@@ -336,6 +342,10 @@ files=(libeay32.dll libpq.dll libxml2.dll libxslt.dll msvcr71.dll ssleay32.dll)
 add_files_to_zip $archive_ext "${depend_path}" bin $files
 add_found_files_to_nsh prov_postgresql bin
 
+files=(libcrypto-10.dll)
+add_files_to_zip $archive_ext "${depend_path}" bin $files
+add_found_files_to_nsh prov_sqlcipher bin
+
 files=(liblber.dll libldap.dll)
 add_files_to_zip $archive_ext "${depend_path}" bin $files
 add_found_files_to_nsh prov_ldap bin
@@ -378,6 +388,10 @@ files=(sqlite_specs_add_column.xml sqlite_specs_create_db.xml sqlite_specs_creat
 add_files_to_zip $archive $prefix share/libgda-5.0 $files
 add_found_files_to_nsh prov_sqlite share/libgda-5.0
 
+files=(sqlcipher_specs_auth.xml sqlcipher_specs_add_column.xml sqlcipher_specs_create_db.xml sqlcipher_specs_create_index.xml sqlcipher_specs_create_table.xml sqlcipher_specs_create_view.xml sqlcipher_specs_drop_db.xml sqlcipher_specs_drop_index.xml sqlcipher_specs_drop_table.xml sqlcipher_specs_drop_view.xml sqlcipher_specs_dsn.xml sqlcipher_specs_rename_table.xml)
+add_files_to_zip $archive $prefix share/libgda-5.0 $files
+add_found_files_to_nsh prov_sqlcipher share/libgda-5.0
+
 files=(web_specs_auth.xml web_specs_dsn.xml)
 add_files_to_zip $archive $prefix share/libgda-5.0 $files
 add_found_files_to_nsh prov_web share/libgda-5.0
@@ -516,6 +530,10 @@ files=(libgda-sqlite.dll)
 add_files_to_zip $archive $prefix lib/libgda-5.0/providers $files
 add_found_files_to_nsh prov_sqlite lib/libgda-5.0/providers
 
+files=(libgda-sqlcipher.dll)
+add_files_to_zip $archive $prefix lib/libgda-5.0/providers $files
+add_found_files_to_nsh prov_sqlcipher lib/libgda-5.0/providers
+
 files=(libgda-web.dll)
 add_files_to_zip $archive $prefix lib/libgda-5.0/providers $files
 add_found_files_to_nsh prov_web lib/libgda-5.0/providers



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]