Skip to content
This repository was archived by the owner on Jun 3, 2021. It is now read-only.

[devtool] Updated the Apache release scripts. #1741

Merged
merged 1 commit into from
Nov 13, 2018

Conversation

jondong
Copy link
Contributor

@jondong jondong commented Nov 12, 2018

Added 'npm run build:rax' to generate Rax precompiled js files, and
updated the build command and generated project for iOS.

Added 'npm run build:rax' to generate Rax precompiled js files, and
updated the build command and generated project for iOS.
@jondong
Copy link
Contributor Author

jondong commented Nov 12, 2018

@YorkShen @Hanks10100 @cxfeng1 PTAL. thanks.

@weex-bot
Copy link

weex-bot commented Nov 12, 2018

Messages
📖 No android file has been changed.
📖 android build verification finished.

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
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same reason as above.

Copy link
Contributor

@Hanks10100 Hanks10100 left a 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.

@Hanks10100 Hanks10100 merged commit 3436364 into apache:rc-0.20.0 Nov 13, 2018
@jondong jondong deleted the rc-0.20.0 branch November 13, 2018 07:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants