mirror of
http://git.whoc.org.uk/git/password-manager.git
synced 2025-10-28 18:07:35 +01:00
Updated builder script
This commit is contained in:
14
scripts/builder/frontends/betaBuilder.py
Normal file
14
scripts/builder/frontends/betaBuilder.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from frontendBuilder import FrontendBuilder
|
||||
import shutil
|
||||
|
||||
class BetaBuilder(FrontendBuilder):
|
||||
|
||||
def name(self):
|
||||
return "/beta builder"
|
||||
|
||||
def copyStaticResources (self, targetFolder):
|
||||
for file in self.filterFiles(self.settings['staticResources']):
|
||||
src = self.absolutePathForSourceFile('staticResources', file)
|
||||
dst = self.absolutePathForTargetFile(targetFolder, '', file)
|
||||
shutil.copy2(src, dst)
|
||||
|
||||
26
scripts/builder/frontends/gammaBuilder.py
Normal file
26
scripts/builder/frontends/gammaBuilder.py
Normal file
@@ -0,0 +1,26 @@
|
||||
from frontendBuilder import FrontendBuilder
|
||||
import shutil
|
||||
|
||||
class GammaBuilder(FrontendBuilder):
|
||||
|
||||
def name(self):
|
||||
return "/gamma builder"
|
||||
|
||||
def copyStaticResources (self, targetFolder):
|
||||
resourcesToCopy = [
|
||||
{'folder': 'html', 'source': 'exit_template.html', 'target': 'exit.html'},
|
||||
{'folder': 'css', 'source': 'static.css', 'target': 'static.css'}
|
||||
]
|
||||
|
||||
for resource in resourcesToCopy:
|
||||
src = self.absolutePathForSourceFile(resource['folder'], resource['source'])
|
||||
dst = self.absolutePathForTargetFile(targetFolder, '', resource['target'])
|
||||
shutil.copy2(src, dst)
|
||||
|
||||
# src = self.absolutePathForSourceFile('html', 'exit_template.html')
|
||||
# dst = self.absolutePathForTargetFile(targetFolder, '', 'exit.html')
|
||||
# shutil.copy2(src, dst)
|
||||
|
||||
# src = self.absolutePathForSourceFile('css', 'static.css')
|
||||
# dst = self.absolutePathForTargetFile(targetFolder, '', 'static.css')
|
||||
# shutil.copy2(src, dst)
|
||||
9
scripts/builder/frontends/gamma_mobileBuilder.py
Normal file
9
scripts/builder/frontends/gamma_mobileBuilder.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from frontendBuilder import FrontendBuilder
|
||||
|
||||
class Gamma_MobileBuilder(FrontendBuilder):
|
||||
|
||||
def name(self):
|
||||
return "/gamma.mobile builder"
|
||||
|
||||
def copyStaticResources (self, targetFolder):
|
||||
pass
|
||||
Reference in New Issue
Block a user