fix: update workflows and change AndroidManifest
parent
963d20afa1
commit
5122c2f683
|
@ -8,17 +8,17 @@ jobs:
|
|||
name: Build for Linux
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
- uses: actions/checkout@v2
|
||||
- uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: 'stable'
|
||||
flutter-version: '3.x'
|
||||
- run: |
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install -y ninja-build libgtk-3-dev
|
||||
- run: flutter config --enable-linux-desktop
|
||||
- run: flutter pub get
|
||||
- name: Build for Linux
|
||||
run: flutter build linux
|
||||
- run: flutter build linux
|
||||
- name: Archive Linux Artifact
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
|
@ -29,10 +29,8 @@ jobs:
|
|||
name: Build for Android
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
- uses: actions/checkout@v2
|
||||
- uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: 'stable'
|
||||
flutter-version: '3.x'
|
||||
|
@ -55,22 +53,21 @@ jobs:
|
|||
build-and-publish-web:
|
||||
name: Build and Publish for Web
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
- uses: actions/checkout@v2
|
||||
- uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: 'stable'
|
||||
flutter-version: '3.x'
|
||||
- name: Enable flutter web
|
||||
run: flutter config --enable-web
|
||||
- name: Get dependencies
|
||||
run: flutter pub get
|
||||
- name: Build for Web
|
||||
run: flutter build web
|
||||
- run: flutter config --enable-web
|
||||
- run: flutter pub get
|
||||
- run: flutter build web
|
||||
- name: Publish to GitHub Pages
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: build/web
|
||||
publish_dir: ./build/web
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<application
|
||||
android:label="release_schedule"
|
||||
android:name="${applicationName}"
|
||||
|
@ -16,7 +17,6 @@
|
|||
while the Flutter UI initializes. After that, this theme continues
|
||||
to determine the Window background behind the Flutter UI. -->
|
||||
<!-- Required to fetch data from the internet. -->
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<meta-data
|
||||
android:name="io.flutter.embedding.android.NormalTheme"
|
||||
android:resource="@style/NormalTheme"
|
||||
|
|
Loading…
Reference in New Issue