mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +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');
|
let possiblePreviousDestFilePath = path.join(destPngDir, destFileName + '.png');
|
||||||
|
|
||||||
// Default Drawable Source File
|
// Default Drawable Source File
|
||||||
const defaultSrcFilePath = themeKey !== 'windowSplashScreenBrandingImage'
|
let defaultSrcFilePath = null;
|
||||||
? require.resolve('cordova-android/templates/project/res/drawable/' + destFileNameExt)
|
|
||||||
: 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)) {
|
if (!cdvConfigPrefValue || !fs.existsSync(cdvConfigPrefValue)) {
|
||||||
let emitType = 'verbose';
|
let emitType = 'verbose';
|
||||||
|
Loading…
Reference in New Issue
Block a user