mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-17 04:34:37 +03:00
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
@@ -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
|
||||
-----
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user