Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notice html distribution #633

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading