Skip to content

Commit a3a4494

Browse files
Add Bedrock GDK paths to core-build-tasks (#100)
* Add Bedrock GDK paths to core-build-tasks * Change files
1 parent dbbe537 commit a3a4494

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-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 Bedrock GDK paths to core-build-tasks",
4+
"packageName": "@minecraft/core-build-tasks",
5+
"email": "[email protected]",
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
@@ -5,6 +5,8 @@
55
* Non-exhaustive list of product variants used to deploy files to the correct location.
66
*/
77
export enum MinecraftProduct {
8+
BedrockGDK = 'BedrockGDK',
9+
PreviewGDK = 'PreviewGDK',
810
Bedrock = 'BedrockUWP',
911
Preview = 'PreviewUWP',
1012
Custom = 'Custom',

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import rimraf from 'rimraf';
77
import { getOrThrowFromProcess } from './helpers/getOrThrowFromProcess';
88

99
export const STANDARD_CLEAN_PATHS = [
10+
'APPDATA/Minecraft Bedrock/Users/Shared/games/com.mojang/development_behavior_packs/PROJECT_NAME',
11+
'APPDATA/Minecraft Bedrock/Users/Shared/games/com.mojang/development_resource_packs/PROJECT_NAME',
12+
'APPDATA/Minecraft Bedrock Preview/Users/Shared/games/com.mojang/development_behavior_packs/PROJECT_NAME',
13+
'APPDATA/Minecraft Bedrock Preview/Users/Shared/games/com.mojang/development_resource_packs/PROJECT_NAME',
1014
'LOCALAPPDATA/Packages/Microsoft.MinecraftUWP_8wekyb3d8bbwe/LocalState/games/com.mojang/development_behavior_packs/PROJECT_NAME',
1115
'LOCALAPPDATA/Packages/Microsoft.MinecraftUWP_8wekyb3d8bbwe/LocalState/games/com.mojang/development_resource_packs/PROJECT_NAME',
1216
'LOCALAPPDATA/Packages/Microsoft.MinecraftWindowsBeta_8wekyb3d8bbwe/LocalState/games/com.mojang/development_behavior_packs/PROJECT_NAME',

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ import { getOrThrowFromProcess } from './getOrThrowFromProcess';
77

88
export function getGameDeploymentRootPaths(): Record<MinecraftProduct, string | undefined> {
99
const localAppDataPath = process.env['LOCALAPPDATA'];
10+
const appDataPath = process.env['APPDATA'];
1011
const customDeploymentPath = process.env['CUSTOM_DEPLOYMENT_PATH'];
1112
return {
13+
BedrockGDK: appDataPath ? resolve(appDataPath, 'Minecraft Bedrock/Users/Shared/games/com.mojang/') : undefined,
14+
PreviewGDK: appDataPath
15+
? resolve(appDataPath, 'Minecraft Bedrock Preview/Users/Shared/games/com.mojang/')
16+
: undefined,
1217
BedrockUWP: localAppDataPath
1318
? resolve(localAppDataPath, 'Packages/Microsoft.MinecraftUWP_8wekyb3d8bbwe/LocalState/games/com.mojang/')
1419
: undefined,

0 commit comments

Comments
 (0)