--- a/rakelib/install.rake Tue May 15 15:20:33 2018 +0000
+++ b/rakelib/install.rake Wed May 16 05:30:33 2018 +0000
@@ -16,6 +16,7 @@
artifacts:main
artifacts:post)
+
namespace :'artifacts' do
task :pre
task :post
@@ -33,5 +34,12 @@
archive = ARTIFACTS_DIR / "#{project.app_name}-#{project.app_version}_#{BUILD_TARGET}_prebuilt-librun.zip"
mkdir_p ARTIFACTS_DIR
zip BUILD_DIR / 'stx' / 'librun' , archive: archive, include: LIBRUN_BINARY_FILES
+ end
+
+ desc 'Create source archive'
+ task :'source' => :checkout do
+ archive = ARTIFACTS_DIR / "#{project.app_name}-#{project.app_version}_sources.tar.gz"
+ mkdir_p ARTIFACTS_DIR
+ zip ".", archive: archive, exclude: %w(CVS .svn .git .hg *.obj *.o *.dll *.so *.debug *.H *.STH *Init.c *-Test.xml artifacts tmp)
end
end