Build MStore Win packages
For the MS Store packaging workflow only! + Fix workspaces read/write issue in the Store package environment
This commit is contained in:
parent
d2d863f2f5
commit
5e72afdcfc
3 changed files with 12 additions and 5 deletions
|
@ -9,7 +9,7 @@ image: Visual Studio 2017
|
|||
branches:
|
||||
only:
|
||||
- master
|
||||
- 3.2.3
|
||||
- 3.2.3_MS_Store
|
||||
|
||||
# build cache to preserve files/folders between builds
|
||||
cache:
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
#include "palettebox.h"
|
||||
#include "extension.h"
|
||||
|
||||
extern Q_CORE_EXPORT int qt_ntfs_permission_lookup;
|
||||
|
||||
namespace Ms {
|
||||
|
||||
bool Workspace::workspacesRead = false;
|
||||
|
@ -564,7 +566,9 @@ void Workspace::read()
|
|||
return;
|
||||
}
|
||||
QFileInfo fi(_path);
|
||||
::qt_ntfs_permission_lookup++;
|
||||
_readOnly = !fi.isWritable();
|
||||
::qt_ntfs_permission_lookup--;
|
||||
|
||||
MQZipReader f(_path);
|
||||
QList<QString> images;
|
||||
|
@ -1003,13 +1007,14 @@ QList<Workspace*>& Workspace::workspaces()
|
|||
|
||||
if (!p) {
|
||||
p = new Workspace;
|
||||
|
||||
p->setPath(s + "/" + entry);
|
||||
p->setName(name);
|
||||
|
||||
if (translate)
|
||||
p->setTranslatableName(name);
|
||||
|
||||
::qt_ntfs_permission_lookup++;
|
||||
p->setReadOnly(!fi.isWritable());
|
||||
::qt_ntfs_permission_lookup--;
|
||||
_workspaces.append(p);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ REM CLEAN:
|
|||
REM "msvc_build.bat clean" remove all files in msvc.* folders and the folders itself
|
||||
|
||||
REM BUILD_64 and BUILD_FOR_WINSTORE are used in CMakeLists.txt
|
||||
SET BUILD_FOR_WINSTORE=OFF
|
||||
SET BUILD_FOR_WINSTORE=ON
|
||||
SET BUILD_64=ON
|
||||
|
||||
SET BUILD_FOLDER=msvc.build
|
||||
|
@ -123,7 +123,9 @@ IF /I "%1"=="clean" (
|
|||
@echo off
|
||||
|
||||
IF NOT "%CRASH_LOG_SERVER_URL%" == "" (
|
||||
SET CRASH_REPORT_URL_OPT=-DCRASH_REPORT_URL=%CRASH_LOG_SERVER_URL% -DBUILD_CRASH_REPORTER=ON
|
||||
IF "%BUILD_FOR_WINSTORE%" == "OFF" (
|
||||
SET CRASH_REPORT_URL_OPT=-DCRASH_REPORT_URL=%CRASH_LOG_SERVER_URL% -DBUILD_CRASH_REPORTER=ON
|
||||
)
|
||||
)
|
||||
|
||||
REM -DCMAKE_BUILD_NUMBER=%BUILD_NUMBER% -DCMAKE_BUILD_AUTOUPDATE=%BUILD_AUTOUPDATE% %CRASH_REPORT_URL_OPT% are used for CI only
|
||||
|
|
Loading…
Reference in a new issue