Skip to content

Commit c59b036

Browse files
authored
Add support for Minecraft Education (desktop and UWP version) for deployment (#105)
* Add support for Minecraft Education (desktop and UWP version) for deployment * Change files * Fix Minecraft Education Edition path --------- Co-authored-by: Andrew Mulholland <gbaman@users.noreply.github.com>
1 parent 3cde8e0 commit c59b036

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "minor",
3+
"comment": "Add support for Minecraft Education (desktop and UWP version) for deployment",
4+
"packageName": "@minecraft/core-build-tasks",
5+
"email": "gbaman@users.noreply.github.com",
6+
"dependentChangeType": "patch"
7+
}

tools/core-build-tasks/src/platforms/MinecraftProduct.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ export enum MinecraftProduct {
99
PreviewGDK = 'PreviewGDK',
1010
Bedrock = 'BedrockUWP',
1111
Preview = 'PreviewUWP',
12+
EducationUWP = 'EducationUWP',
13+
EducationDesktop = 'EducationDesktop',
1214
Custom = 'Custom',
1315
}

tools/core-build-tasks/src/tasks/cleanCollateral.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ export const STANDARD_CLEAN_PATHS = [
1111
'APPDATA/Minecraft Bedrock/Users/Shared/games/com.mojang/development_resource_packs/PROJECT_NAME',
1212
'APPDATA/Minecraft Bedrock Preview/Users/Shared/games/com.mojang/development_behavior_packs/PROJECT_NAME',
1313
'APPDATA/Minecraft Bedrock Preview/Users/Shared/games/com.mojang/development_resource_packs/PROJECT_NAME',
14+
'APPDATA/Minecraft Education Education/games/com.mojang/development_behavior_packs/PROJECT_NAME',
15+
'APPDATA/Minecraft Education Education/games/com.mojang/development_resource_packs/PROJECT_NAME',
1416
'LOCALAPPDATA/Packages/Microsoft.MinecraftUWP_8wekyb3d8bbwe/LocalState/games/com.mojang/development_behavior_packs/PROJECT_NAME',
1517
'LOCALAPPDATA/Packages/Microsoft.MinecraftUWP_8wekyb3d8bbwe/LocalState/games/com.mojang/development_resource_packs/PROJECT_NAME',
1618
'LOCALAPPDATA/Packages/Microsoft.MinecraftWindowsBeta_8wekyb3d8bbwe/LocalState/games/com.mojang/development_behavior_packs/PROJECT_NAME',
1719
'LOCALAPPDATA/Packages/Microsoft.MinecraftWindowsBeta_8wekyb3d8bbwe/LocalState/games/com.mojang/development_resource_packs/PROJECT_NAME',
20+
'LOCALAPPDATA/Packages/Microsoft.MinecraftEducationEdition_8wekyb3d8bbwe/LocalState/games/com.mojang/development_behavior_packs/PROJECT_NAME',
21+
'LOCALAPPDATA/Packages/Microsoft.MinecraftEducationEdition_8wekyb3d8bbwe/LocalState/games/com.mojang/development_resource_packs/PROJECT_NAME',
1822
];
1923

2024
/**

tools/core-build-tasks/src/tasks/helpers/getGameDeploymentRootPaths.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ export function getGameDeploymentRootPaths(): Record<MinecraftProduct, string |
2323
'Packages/Microsoft.MinecraftWindowsBeta_8wekyb3d8bbwe/LocalState/games/com.mojang/'
2424
)
2525
: undefined,
26+
EducationUWP: localAppDataPath
27+
? resolve(
28+
localAppDataPath,
29+
'Packages/Microsoft.MinecraftEducationEdition_8wekyb3d8bbwe/LocalState/games/com.mojang/'
30+
)
31+
: undefined,
32+
EducationDesktop: appDataPath
33+
? resolve(appDataPath, 'Minecraft Education Edition/games/com.mojang/')
34+
: undefined,
2635
Custom: customDeploymentPath ? customDeploymentPath : undefined,
2736
};
2837
}

0 commit comments

Comments
 (0)