Skip to content

Commit 59343a9

Browse files
authored
Merge pull request #97 from All4Gis/dev
Dev
2 parents 57a5be1 + 5a4f6a4 commit 59343a9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

deploy/exclude-file.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
__pycache__
2+
ui
3+
tests
4+
*.sh
5+
settings_linux_sample.ini
6+
settings_win_sample.ini
7+
*.bat

deploy/plugin_zip.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ def copyProjectStructure():
3535
os.system('robocopy %s %s /E /V /XD ".settings" "sql" "__pycache__" "tests" "ui" ".git" /XF *.bat *.sh *.pro *.ts .gitignore *.docx *.bak *.yml *.pyc *.ps1 *.project *.pydevproject' % (basePath, destPath))
3636
else:
3737
basePath_linux = os.path.join(directory, os.path.realpath('../code/*'))
38-
cmd = 'rsync -avi --progress --exclude "__pycache__" --exclude "ui" --exclude "*.sh" --exclude "*.bat" %s %s' % (basePath_linux, destPath)
38+
exclude = os.path.join(os.path.dirname(directory),'exclude-file.txt')
39+
cmd = 'rsync -avi --progress --exclude-from="%s" %s %s' % (exclude, basePath_linux, destPath)
3940
os.system(cmd)
4041

4142
except Exception as e:

0 commit comments

Comments
 (0)