1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2024-11-14 23:39:02 +01:00
password-manager-mirror/scripts/builder/frontends/betaBuilder.py
2015-09-10 15:13:26 +02:00

21 lines
606 B
Python

from frontendBuilder import FrontendBuilder
import shutil
class BetaBuilder(FrontendBuilder):
def name(self):
return "/beta builder"
def projectResourceTypes (self):
return ['js', 'css', 'images']
# def copyStaticResources (self, targetFolder):
def copyResourcesToFolder (self, targetFolder, backendSettings):
self.copyResources(self.projectDir, targetFolder, 'images')
for file in self.filterFiles(self.settings['staticResources']):
src = self.absolutePathForSourceFile('staticResources', file)
dst = self.absolutePathForTargetFile(targetFolder, '', file)
shutil.copy2(src, dst)