-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[devtool] Updated the Apache release scripts. #1741
Conversation
Added 'npm run build:rax' to generate Rax precompiled js files, and updated the build command and generated project for iOS.
@YorkShen @Hanks10100 @cxfeng1 PTAL. thanks. |
Generated by 🚫 dangerJS |
|
||
echo "Weex JS Framework build completed." | ||
sleep 2 | ||
|
||
mkdir pre-build | ||
# Copy built JS resources to their destination. | ||
[ -d pre-build ] || mkdir pre-build | ||
cp dist/weex-js-framework.min.js pre-build/native-bundle-main.js | ||
cp dist/weex-js-framework.min.js android_sdk/assets/native-bundle-main.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the file structure had been refactored, here should be android/sdk/assets
instead of android_sdk/assets
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is on purpose because not all the changes in the source code base are suitable for Apache Release, so we created a dedicated directory and copy the necessary sources into it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it! I mixed up those folders.
@@ -40,10 +42,12 @@ cp dist/weex-polyfill.min.js pre-build/weex-polyfill.js | |||
cp dist/weex-rax.min.js pre-build/weex-rax-api.js | |||
cp dist/weex-rax.min.js android_sdk/assets/weex-rax-api.js | |||
|
|||
# Build android_sdk | |||
gradle wrapper --gradle-version 4.4 | |||
echo 'include ":android_sdk"'>settings.gradle | |||
./gradlew :android_sdk:assemble -PasfRelease |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we get into the android
path before running these commands?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same reason as above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works fine on my local machine.
Added 'npm run build:rax' to generate Rax precompiled js files, and
updated the build command and generated project for iOS.