Change install path (#48) (#49)

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
Hiroshi Miura
2019-11-10 13:25:46 +09:00
committed by GitHub
parent b4940e3eb0
commit 0363599359
3 changed files with 9 additions and 6 deletions

View File

@@ -17,6 +17,9 @@ Added
Changed
-------
* Change install path from <target>/Qt/Qt<version>/<version> to <target>/<version> (#48).
- Also update CI test to specify --outputdir <target> that is $(BinariesDirectory)/Qt
Fixed
-----

View File

@@ -90,10 +90,10 @@ class QtInstaller:
def install(self, command=None, target_dir=None):
qt_version, target, arch = self.qt_archives.get_target_config()
if target_dir is not None:
base_dir = os.path.join(target_dir, 'Qt')
if target_dir is None:
base_dir = os.getcwd()
else:
base_dir = os.path.join(os.getcwd(), 'Qt')
base_dir = target_dir
archives = self.qt_archives.get_archives()
p = Pool(NUM_PROCESS)
ret_arr = p.map(functools.partial(self.retrieve_archive, command=command, path=base_dir), archives)

View File

@@ -24,7 +24,7 @@ steps:
inputs:
scriptSource: filePath
scriptPath: $(Build.SourcesDirectory)/bin/aqt
arguments: install $(QT_VERSION) $(HOST) $(TARGET) $(ARCH) --internal
arguments: install --outputdir $(Build.BinariesDirectory)/Qt $(QT_VERSION) $(HOST) $(TARGET) $(ARCH) --internal
workingDirectory: $(Build.BinariesDirectory)
condition: and(not(variables['QT_BASE_MIRROR']), not(variables['TOOL_NAME']))
displayName: Run Aqt (No Base URL Set)
@@ -32,7 +32,7 @@ steps:
inputs:
scriptSource: filePath
scriptPath: $(Build.SourcesDirectory)/bin/aqt
arguments: install $(QT_VERSION) $(HOST) $(TARGET) $(ARCH) -b $(QT_BASE_MIRROR)
arguments: install --outputdir $(Build.BinariesDirectory)/Qt $(QT_VERSION) $(HOST) $(TARGET) $(ARCH) -b $(QT_BASE_MIRROR)
workingDirectory: $(Build.BinariesDirectory)
condition: and(variables['QT_BASE_MIRROR'], not(variables['TOOL_NAME']))
displayName: Run Aqt (Base URL Set)
@@ -105,7 +105,7 @@ steps:
inputs:
scriptSource: filePath
scriptPath: $(Build.SourcesDirectory)/bin/aqt
arguments: tool $(HOST) $(TOOL_NAME) $(TOOL_VERSION) $(ARCH) --internal
arguments: tool --outputdir $(Build.BinariesDirectory)/Qt $(HOST) $(TOOL_NAME) $(TOOL_VERSION) $(ARCH) --internal
workingDirectory: $(Build.BinariesDirectory)
condition: variables['TOOL_NAME']
displayName: Run Aqt (Tool)