-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.gs
32 lines (24 loc) · 863 Bytes
/
deploy.gs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
function deployJDBCXLibrary() {
// Library & WebApp JdbcX script as a template
const template_script_id = "1AMYNAA96kZTenVVNqjDXtyZx7h6PcQHIbFvnt1TxqbHIuqBbLbmMQk7l";
// Initialize the template script
const updater = ScriptSync.assignTemplate(template_script_id);
// Copy new files
const filesToCopy = ScriptSync.getScriptFiles(template_script_id);
filesToCopy.forEach(function(item) {
updater.AddNewFile(item.file);
});
// Delete this file
updater.deleteFile('deploy');
// Apply changes
const status = updater.commit();
if (!status) {
console.error('Something went wrong.');
} else {
console.log(
'Please rename the project to \"JdbcX\". ' +
'Reload the current tab, change the timezone ' +
'in the project settings, and follow step 4: ' +
'https://github.com/githnow/JdbcX#step4.');
}
}