From a6f757b9bc928df9bdc8450636388060be0b582b Mon Sep 17 00:00:00 2001 From: lins05 Date: Wed, 20 Feb 2013 19:54:51 +0800 Subject: [PATCH] fixed some distribute problems --- app/Makefile.am | 2 ++ scripts/build/gen-deb-src.py | 9 +++++++++ setupwin.py | 3 +++ 3 files changed, 14 insertions(+) diff --git a/app/Makefile.am b/app/Makefile.am index 10180bcd..b38d08d4 100644 --- a/app/Makefile.am +++ b/app/Makefile.am @@ -39,3 +39,5 @@ endif # monitor_tool_LDADD = @CCNET_CFLAGS@ \ # -lsearpc \ # @GLIB2_LIBS@ @GOBJECT_LIBS@ -lssl -lrt -luuid -lsqlite3 + +EXTRA_DIST = seaf-cli \ No newline at end of file diff --git a/scripts/build/gen-deb-src.py b/scripts/build/gen-deb-src.py index c2d0916a..0311f37e 100755 --- a/scripts/build/gen-deb-src.py +++ b/scripts/build/gen-deb-src.py @@ -153,6 +153,13 @@ def remove_unused_files(): def gen_tarball(): output = os.path.join(conf[CONF_OUTPUTDIR], 'seafile-latest.tar.gz') dirname = 'seafile-%s' % conf[CONF_VERSION] + + ignored_patterns = [ + # windows msvc dlls + os.path.join(dirname, 'msi', 'bin*'), + ] + + excludes_list = [ '--exclude=%s' % pattern for pattern in ignored_patterns ] argv = [ 'tar', 'czvf', @@ -160,6 +167,8 @@ def gen_tarball(): dirname, ] + argv.append(*excludes_list) + if run_argv(argv) != 0: error('failed to gen %s' % output) diff --git a/setupwin.py b/setupwin.py index 35371705..9e8efc68 100644 --- a/setupwin.py +++ b/setupwin.py @@ -230,6 +230,9 @@ def copy_shared_libs(): for lib in shared_libs: must_copy(lib, bin_dir) + libsqlite3 = which('libsqlite3-0.dll') + must_copy(libsqlite3, bin_dir) + def copy_dll_exe(): filelist = [ 'libsearpc-1.dll',