Skip to content

Commit

Permalink
Merge pull request #10 from ConcenTech:0.3.0_fix-build-scripts
Browse files Browse the repository at this point in the history
0.3.0_fix-build-scripts
  • Loading branch information
KevMCarp authored Oct 15, 2024
2 parents bc1edac + 3ef0ecb commit 04fe6af
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 38 deletions.
70 changes: 33 additions & 37 deletions .github/workflows/build_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Create signing key
uses: timheuer/[email protected]
with:
fileDir: "android/"
fileDir: "/home/runner/work/album_share/android/"
fileName: "keystore.jks"
encodedString: ${{ secrets.ANDROID_KEY_BASE64 }}

Expand Down Expand Up @@ -56,7 +56,6 @@ jobs:

- name: Add files to release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down Expand Up @@ -95,7 +94,6 @@ jobs:

- name: Add archive to release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down Expand Up @@ -129,45 +127,43 @@ jobs:

- name: Add archive to release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: build/windows/x64/runner/Release/AlbumShare-{{github.ref_name}}-windows.zip

build_macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

- name: Setup the flutter environment
uses: subosito/flutter-action@v2
with:
channel: "stable"

- name: Install project dependencies
run: flutter pub get

- name: Generate build files
run: dart run build_runner build --delete-conflicting-outputs

- name: Build
run: flutter build macos --release

- name: Creative archive
uses: thedoctor0/[email protected]
with:
type: "zip"
filename: AlbumShare-{{github.ref_name}}-macos.zip
directory: build/macos/Build/Products/Release

- name: Add archive to release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: build/macos/Build/Products/Release/AlbumShare-{{github.ref_name}}-macos.zip
# build_macos:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v4

# - name: Setup the flutter environment
# uses: subosito/flutter-action@v2
# with:
# channel: "stable"

# - name: Install project dependencies
# run: flutter pub get

# - name: Generate build files
# run: dart run build_runner build --delete-conflicting-outputs

# - name: Build
# run: flutter build macos --release

# - name: Creative archive
# uses: thedoctor0/[email protected]
# with:
# type: "zip"
# filename: AlbumShare-{{github.ref_name}}-macos.zip
# directory: build/macos/Build/Products/Release

# - name: Add archive to release
# uses: softprops/action-gh-release@v2
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# files: build/macos/Build/Products/Release/AlbumShare-{{github.ref_name}}-macos.zip

# build_ios:
# runs-on: macos-latest
Expand Down
1 change: 0 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ void main() {
WidgetsFlutterBinding.ensureInitialized();
VideoPlayer.ensureInitialized();
AppWindow.ensureInitialized();

runApp(
const ProviderScope(
child: LocaleScope(
Expand Down

0 comments on commit 04fe6af

Please sign in to comment.