comparison Resources/SyncOrthancFolder.py @ 218:240fac923e8d

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 03 Jul 2024 17:29:07 +0200
parents 0c5da632f34d
children 3678a028f1f6
comparison
equal deleted inserted replaced
217:f764ba66e409 218:240fac923e8d
10 import stat 10 import stat
11 import subprocess 11 import subprocess
12 import urllib.request 12 import urllib.request
13 13
14 TARGET = os.path.join(os.path.dirname(__file__), 'Orthanc') 14 TARGET = os.path.join(os.path.dirname(__file__), 'Orthanc')
15 ORTHANC_JAVA_VERSION = '1.0' 15 ORTHANC_JAVA_VERSION = 'default'
16 PLUGIN_SDK_VERSION = '1.10.0' 16 PLUGIN_SDK_VERSION = '1.10.0'
17 ORTHANC_CORE_REPOSITORY = 'https://orthanc.uclouvain.be/hg/orthanc/raw-file' 17 ORTHANC_CORE_REPOSITORY = 'https://orthanc.uclouvain.be/hg/orthanc/raw-file'
18 ORTHANC_JAVA_REPOSITORY = 'https://orthanc.uclouvain.be/hg/orthanc-java/raw-file' 18 ORTHANC_JAVA_REPOSITORY = 'https://orthanc.uclouvain.be/hg/orthanc-java/raw-file'
19 19
20 FILES = [ 20 FILES = [
70 ]) 70 ])
71 71
72 72
73 commands.append([ 73 commands.append([
74 ORTHANC_JAVA_REPOSITORY, 74 ORTHANC_JAVA_REPOSITORY,
75 'OrthancJava-%s' % ORTHANC_JAVA_VERSION, 75 ORTHANC_JAVA_VERSION,
76 'Resources/Orthanc/Sdk-%s/orthanc/OrthancCPlugin.h' % PLUGIN_SDK_VERSION, 76 'Resources/Orthanc/Sdk-%s/orthanc/OrthancCPlugin.h' % PLUGIN_SDK_VERSION,
77 'Sdk-%s/orthanc/OrthancCPlugin.h' % PLUGIN_SDK_VERSION, 77 'Sdk-%s/orthanc/OrthancCPlugin.h' % PLUGIN_SDK_VERSION,
78 ]) 78 ])
79 79
80 80
84 'ClassDocumentation.json', 84 'ClassDocumentation.json',
85 'ClassDocumentation.json.license', 85 'ClassDocumentation.json.license',
86 ]: 86 ]:
87 commands.append([ 87 commands.append([
88 ORTHANC_JAVA_REPOSITORY, 88 ORTHANC_JAVA_REPOSITORY,
89 'OrthancJava-%s' % ORTHANC_JAVA_VERSION, 89 ORTHANC_JAVA_VERSION,
90 'CodeGeneration/%s' % f, 90 'CodeGeneration/%s' % f,
91 'Sdk-%s/%s' % (PLUGIN_SDK_VERSION, f), 91 'Sdk-%s/%s' % (PLUGIN_SDK_VERSION, f),
92 ]) 92 ])
93 93
94 94