Skip to content

Commit a4a4b30

Browse files
committed
better for shell session windows publish
1 parent 7602753 commit a4a4b30

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

platform/windows/Package.appxmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" xmlns:iot="http://schemas.microsoft.com/appx/manifest/iot/windows10" IgnorableNamespaces="uap rescap iot build" xmlns:build="http://schemas.microsoft.com/developer/appx/2015/build">
44

5-
<Identity Name="Charles-PhilippeLepage.FullStackedEditor" Publisher="CN=3F94CE5F-7E00-4DE1-941D-8256CB924D0F" Version="0.11.1148.0" />
5+
<Identity Name="Charles-PhilippeLepage.FullStackedEditor" Publisher="CN=3F94CE5F-7E00-4DE1-941D-8256CB924D0F" Version="0.11.1149.0" />
66

77
<Properties>
88
<DisplayName>FullStacked</DisplayName>

platform/windows/publish.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ await new Promise(res => {
6161
}
6262

6363
selectionDone = true;
64-
console.log(stdout.match(/(> |. )?FullStacked.*/g).slice(-2))
6564
ptyProcess.write("\r");
6665
}
6766

@@ -74,6 +73,14 @@ await new Promise(res => {
7473
ptyProcess.write('msstore init\r');
7574
});
7675

76+
packageContent = fs.readFileSync(packageFile, { encoding: "utf-8" });
77+
if(isRelease && !packageContent.match(/<DisplayName>FullStacked<\/DisplayName>/)) {
78+
throw "Failed to init to FullStacked App"
79+
}
80+
if(!isRelease && !packageContent.match(/<DisplayName>FullStacked \(Beta\)<\/DisplayName>/)) {
81+
throw "Failed to init to FullStacked (Beta) App"
82+
}
83+
7784
child_process.execSync("msstore package", {
7885
cwd: currentDirectory,
7986
stdio: "inherit"

0 commit comments

Comments
 (0)