Change exit strategy for activation step
This commit is contained in:
@@ -38,32 +38,35 @@ export default class ImageTag {
|
||||
windows: 'windows',
|
||||
android: 'android',
|
||||
ios: 'ios',
|
||||
facebook: 'facebook',
|
||||
};
|
||||
}
|
||||
|
||||
static get targetPlatformToBuilderPlatformMap() {
|
||||
const { generic, webgl, mac, windows, android, ios } = ImageTag.builderPlatforms;
|
||||
const { generic, webgl, mac, windows, android, ios, facebook } = ImageTag.builderPlatforms;
|
||||
|
||||
// @see: https://docs.unity3d.com/ScriptReference/BuildTarget.html
|
||||
return {
|
||||
Test: generic,
|
||||
WebGL: webgl,
|
||||
StandaloneOSX: mac,
|
||||
StandaloneWindows: windows,
|
||||
StandaloneWindows64: windows,
|
||||
StandaloneLinux64: generic,
|
||||
PS4: generic,
|
||||
XboxOne: generic,
|
||||
Switch: generic,
|
||||
Android: android,
|
||||
StandaloneLinux64: windows,
|
||||
iOS: ios,
|
||||
tvOS: generic,
|
||||
Lumin: generic,
|
||||
BJM: generic,
|
||||
Stadia: generic,
|
||||
WSAPlayer: generic,
|
||||
Facebook: generic,
|
||||
Android: android,
|
||||
WebGL: webgl,
|
||||
WSAPlayer: windows,
|
||||
PS4: windows,
|
||||
XboxOne: windows,
|
||||
tvOS: windows,
|
||||
Switch: windows,
|
||||
// Unsupported
|
||||
Lumin: windows,
|
||||
BJM: windows,
|
||||
Stadia: windows,
|
||||
Facebook: facebook,
|
||||
NoTarget: generic,
|
||||
// Test specific
|
||||
Test: generic,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ describe('UnityImageVersion', () => {
|
||||
repository: 'test1',
|
||||
name: 'test2',
|
||||
version: '2099.9.f9f9',
|
||||
platform: 'Stadia',
|
||||
platform: 'Test',
|
||||
builderPlatform: '',
|
||||
};
|
||||
|
||||
@@ -59,7 +59,7 @@ describe('UnityImageVersion', () => {
|
||||
});
|
||||
|
||||
it('returns no specific build platform for generic targetPlatforms', () => {
|
||||
const image = new ImageTag({ platform: 'Stadia' });
|
||||
const image = new ImageTag({ platform: 'NoTarget' });
|
||||
|
||||
expect(image.toString()).toStrictEqual(`${defaults.image}:2019.2.11f1`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user