mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-18 22:52:54 +08:00
fix: support installing platfrom from local git checkout (#1453)
This commit is contained in:
parent
861fec2cc7
commit
e968cac0b9
@ -553,9 +553,17 @@ function updateProjectSplashScreenImage (locations, themeKey, cdvConfigPrefKey,
|
||||
let possiblePreviousDestFilePath = path.join(destPngDir, destFileName + '.png');
|
||||
|
||||
// Default Drawable Source File
|
||||
const defaultSrcFilePath = themeKey !== 'windowSplashScreenBrandingImage'
|
||||
? require.resolve('cordova-android/templates/project/res/drawable/' + destFileNameExt)
|
||||
: null;
|
||||
let defaultSrcFilePath = null;
|
||||
|
||||
if (themeKey !== 'windowSplashScreenBrandingImage') {
|
||||
try {
|
||||
// coming from user project
|
||||
defaultSrcFilePath = require.resolve('cordova-android/templates/project/res/drawable/' + destFileNameExt);
|
||||
} catch (e) {
|
||||
// coming from repo test & coho
|
||||
defaultSrcFilePath = require.resolve('../templates/project/res/drawable/' + destFileNameExt);
|
||||
}
|
||||
}
|
||||
|
||||
if (!cdvConfigPrefValue || !fs.existsSync(cdvConfigPrefValue)) {
|
||||
let emitType = 'verbose';
|
||||
|
Loading…
Reference in New Issue
Block a user