Skip to content

Commit

Permalink
Notice html distribution (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
CedricGuillemet authored Jan 24, 2024
1 parent 7f70a8c commit c11308e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Empty file added NOTICE.html
Empty file.
5 changes: 5 additions & 0 deletions Package/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ const buildUWP = gulp.series(makeUWPProject, buildUWPProject);

const copyCommonFiles = () => {
return gulp.src('../Modules/@babylonjs/react-native/README.md')
.pipe(gulp.src('../NOTICE.html'))
.pipe(gulp.dest('Assembled'));
};

Expand All @@ -217,6 +218,7 @@ const copySharedFiles = () => {
const copyIOSAndroidCommonFiles = () => {
return gulp.src('../Modules/@babylonjs/react-native-iosandroid/package.json')
.pipe(gulp.src('../Modules/@babylonjs/react-native-iosandroid/README.md'))
.pipe(gulp.src('../NOTICE.html'))
.pipe(gulp.src(`${basekitPackagePath}react-native-babylon.podspec`))
.pipe(gulp.dest(`${assemblediOSAndroidDir}/`));
};
Expand Down Expand Up @@ -304,6 +306,7 @@ const createUWPDirectories = async () => {
const copyCommonFilesUWP = () => {
return gulp.src('../Modules/@babylonjs/react-native-windows/package.json')
.pipe(gulp.src('../Modules/@babylonjs/react-native-windows/README.md'))
.pipe(gulp.src('../NOTICE.html'))
.pipe(gulp.src('../Modules/@babylonjs/react-native-windows/*.ts*'))
.pipe(gulp.dest(`${assembledWindowsDir}`));
}
Expand Down Expand Up @@ -448,6 +451,7 @@ const validateAssembled = async () => {
'Assembled/ReactNativeEngine.js',
'Assembled/ReactNativeEngine.js.map',
'Assembled/README.md',
'Assembled/NOTICE.html',
'Assembled/shared',
'Assembled/shared/BabylonNative.h',
'Assembled/shared/XrAnchorHelper.h',
Expand Down Expand Up @@ -541,6 +545,7 @@ const validateAssemblediOSAndroid = async () => {
`${assemblediOSAndroidDir}/package.json`,
`${assemblediOSAndroidDir}/react-native-babylon.podspec`,
`${assemblediOSAndroidDir}/README.md`,
`${assemblediOSAndroidDir}/NOTICE.html`,
];

const versionIndex = process.argv.indexOf('--reactNative');
Expand Down

0 comments on commit c11308e

Please sign in to comment.