Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
flutterui:build_release [2020/08/13 15:41] admin |
flutterui:build_release [2022/09/21 12:56] admin |
||
---|---|---|---|
Line 5: | Line 5: | ||
======Build script====== | ======Build script====== | ||
- | =====Requirements===== | + | The build script is available in the **creator** directory. The script is [[https://ant.apache.org/|Apache ANT]] based and it's a simple XML file. It defines has several build commands. The default command (start.complete) creates output for iOS, Android and Web deployment. |
- | The build script requires Node.js and perl. Simply check versions: | + | The iOS build command requires macOS but won't fail if your system is not macOS. |
- | node -v | + | =====Requirements===== |
- | npm -v | + | |
- | + | ||
- | perl -v | + | |
- | + | ||
- | Download and install Node.js: https://nodejs.org/en/ \\ | + | |
- | Download install Perl: https://www.perl.org/get.html | + | |
- | + | ||
- | Run ''%%npm install%%'' to install all depending npm packages. | + | |
- | **(Windows only)** Add the full path of flutterclient/node_modules/.bin/ to %PATH% variables. | + | Java Runtime environment > 8.0 |
=====Commands===== | =====Commands===== | ||
- | The results can be found in **deploy** directory. | + | ====Complete (start.complete)==== |
- | ====Web==== | + | cd creator |
- | + | ./build.sh | |
- | Currently, beta channel is required for Flutter WEB: | + | |
- | + | ||
- | flutter channel beta | + | |
- | flutter doctor -v | + | |
- | flutter config --enable-web | + | |
- | + | ||
- | Start build | + | |
- | + | ||
- | npm run buildweb | + | |
- | + | ||
- | ====Android==== | + | |
- | + | ||
- | npm run buildandroid | + | |
| | ||
- | ====iOS==== | + | or |
- | npm run buildios | + | cd creator |
+ | build.cmd | ||
| | ||
- | =====Other===== | + | ====iOS (start.ios)==== |
- | ===Build number=== | + | cd creator |
+ | ./build.sh start.ios | ||
- | npm run increasebuildnumber | + | ====Android (start.android)==== |
- | ======Manual====== | + | cd creator |
+ | ./build.sh start.android | ||
- | =====Web===== | + | ====Web (start.web)==== |
- | Currently, beta channel is required for Flutter WEB: | + | cd creator |
+ | ./build.sh start.web | ||
- | flutter channel beta | + | The results will be available in |
- | flutter doctor -v | + | |
- | flutter config --enable-web | + | creator/build/install |
| | ||
- | Run the web variant: | + | directory. |
- | flutter run -d chrome | + | =====Updates===== |
- | + | ||
- | Build the release: | + | To get the latest build script, simply call |
- | flutter build web | + | cd creator |
+ | ./update.sh | ||
| | ||
- | The result can be found in **build/web** directory. | + | The latest [[https://raw.githubusercontent.com/sibvisions/flutterclient/main/creator/build.xml|build.xml]] will be saved in the creator directory. |