-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #604 from shiosyakeyakini-info/feature/miria_v2
Feature/miria v2
- Loading branch information
Showing
467 changed files
with
36,315 additions
and
22,431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"flutter": "3.24.3" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.freezed.dart linguist-generated=true | ||
*.g.dart linguist-generated=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
|
||
name: デプロイ(snap) | ||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
name: ビルド(Snap) | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
platform: [amd64, arm64] | ||
outputs: | ||
snap: ${{ steps.snapcraft.outputs.snap }} | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Build Snap | ||
id: snapcraft | ||
uses: diddlesnaps/snapcraft-multiarch-action@v1 | ||
with: | ||
architecture: ${{ matrix.platform }} | ||
|
||
- name: Get Build Version | ||
run: | | ||
echo "VERSION=$(yq -r '.version' pubspec.yaml)" >> $GITHUB_ENV | ||
- name: Upload snap | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
gh release upload v$VERSION ${{ steps.snapcraft.outputs.snap }} | ||
# https://gihyo.jp/admin/serial/01/ubuntu-recipe/0660#sec3 : Snapパッケージアップロードまでの流れ | ||
# https://github.com/snapcore/action-publish : Snap ActionのREADME.md | ||
# Snap Storeでパッケージ名"miria"を予約($ snapcraft register miria)後、"SNAPCRAFT_STORE_CREDENTIALS"を登録し、 | ||
# 以下をコメントアウトを解除することでSnap Storeへアップロードすることが可能です。 | ||
# 通常、SnapファイルをそのままStore外で公開することはありません。 | ||
# | ||
#- name: Upload Snap Store | ||
# uses: snapcore/action-publish@v1 | ||
# env: | ||
# SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }} | ||
# with: | ||
# snap: ${{ steps.snapcraft.outputs.snap }} | ||
# release: stable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,13 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Get Flutter version from .fvmrc | ||
run: echo "FLUTTER_FVM_VERSION=$(jq -r .flutter .fvmrc)" >> $env:GITHUB_ENV | ||
|
||
- name: Install Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
flutter-version: ${{ env.FLUTTER_FVM_VERSION }} | ||
cache: true | ||
|
||
- name: Flutter pub get | ||
|
@@ -35,16 +38,23 @@ jobs: | |
run: | | ||
flutter build windows --release | ||
- name: Delete unnecessary DLL | ||
run: | | ||
rm build\windows\x64\runner\Release\api-ms-*.dll | ||
rm build\windows\x64\runner\Release\concrt140.dll | ||
rm build\windows\x64\runner\Release\msvcp*.dll | ||
rm build\windows\x64\runner\Release\ucrtbas*.dll | ||
rm build\windows\x64\runner\Release\vc*.dll | ||
- name: Get translation files for Inno Setup | ||
run: | | ||
curl -o ${{ env.builddir }}\Korean.isl https://raw.githubusercontent.com/jrsoftware/issrc/main/Files/Languages/Korean.isl | ||
curl -o ${{ env.builddir }}\ChineseSimplified.isl https://raw.githubusercontent.com/jrsoftware/issrc/main/Files/Languages/Unofficial/ChineseSimplified.isl | ||
- name: Compile .ISS to .EXE Installer | ||
uses: Minionguyjpro/[email protected].4 | ||
uses: Minionguyjpro/[email protected].5 | ||
with: | ||
path: windows/innosetup.iss | ||
options: /dMyAppVersion="${{ env.version }}" /dMyWorkDir="${{ env.builddir }}" | ||
options: /dMyAppVersion="${{ env.version }}" /dMyWorkDir="${{ env.builddir }}" /Qp | ||
|
||
- name: Rename .EXE Installer | ||
run: mv miria-installer.exe miria-installer_${env:version}_x64.exe | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"dart.flutterSdkPath": ".fvm/versions/3.24.3" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.