Skip to content

Commit

Permalink
🚀 v0.2.1
Browse files Browse the repository at this point in the history
close #1
  • Loading branch information
BTMuli committed Nov 7, 2024
1 parent 5b1fd6f commit f6cb42d
Show file tree
Hide file tree
Showing 9 changed files with 122 additions and 118 deletions.
67 changes: 40 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,50 @@
name: Build Release

on:
workflow_dispatch:
push:
tags:
- 'v*.*.*'

jobs:
build:
createRelease:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Release
uses: softprops/action-gh-release@v2
with:
draft: true
body: |
<a href="https://apps.microsoft.com/detail/9n6vc24jx0jq?mode=direct">
<img src="https://get.microsoft.com/images/zh-cn%20dark.svg" width="200"/>
</a>
buildWindows:
name: Build Windows
runs-on: windows-latest
permissions:
contents: write
steps:

- name: 签出仓库
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: master

- name: 初始化 Flutter 环境
uses: subosito/flutter-action@v2
with:
channel: stable
architecture: x64

- name: 检查环境
run: flutter doctor

- name: 拉取依赖
run: flutter pub get

- name: 打包并压缩
run: |
flutter build windows
Compress-Archive -Path ./build/windows/x64/runner/Release/* -DestinationPath ShufflePlay.zip
- name: 打包msix
run: dart run msix:create -p ${{ secrets.SIGN_SECRET }}

- name: 打包msix-Store
run: >
dart run msix:create
Expand All @@ -48,23 +53,31 @@ jobs:
-b "CN=5FE33156-C3CE-4E71-A036-81BAA99521CB"
-n "ShufflePlay_Store"
-p ${{ secrets.SIGN_SECRET }}
- name: 上传文件
uses: actions/upload-artifact@v4
uses: xresloader/upload-to-github-release@v1
with:
name: ShufflePlay
compression-level: 0
path: |
ShufflePlay.zip
ShufflePlay.msix
ShufflePlay_Store.msix
file: ShufflePlay.zip,ShufflePlay.msix,ShufflePlay_Store.msix

- name: 发行Release
uses: marvinpinto/action-automatic-releases@latest
buildMac:
runs-on: macos-latest
permissions:
contents: write
steps:
- name: 签出仓库
uses: actions/checkout@v4
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
draft: true
files: |
ShufflePlay.zip
ShufflePlay.msix
ShufflePlay_Store.msix
fetch-depth: 0
ref: master
- name: 初始化 Flutter 环境
uses: subosito/flutter-action@v2
with:
channel: stable
architecture: x64
- name: 拉取依赖
run: flutter pub get
- name: 打包
run: flutter build macos
- name: 上传文件
- uses: xresloader/upload-to-github-release@v1
with:
file: 'build/macos/Build/Products/Release/ShufflePlay.app'
43 changes: 0 additions & 43 deletions .github/workflows/release_mac.yml

This file was deleted.

5 changes: 3 additions & 2 deletions lib/widgets/app/config/app_config_device.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ import 'package:flutter/foundation.dart';
// Package imports:
import 'package:device_info_plus/device_info_plus.dart';
import 'package:fluent_ui/fluent_ui.dart';
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart'
as mdi;
import 'package:url_launcher/url_launcher_string.dart';
import 'package:webview_windows/webview_windows.dart';

// Project imports:
import '../app_icon.dart';

import 'package:material_design_icons_flutter/material_design_icons_flutter.dart'
as mdi;

class AppConfigDeviceWidget extends StatefulWidget {
const AppConfigDeviceWidget({super.key});

Expand Down
5 changes: 3 additions & 2 deletions lib/widgets/app/config/app_config_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import 'package:flutter/material.dart' as material;
import 'package:fluent_ui/fluent_ui.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart'
as mdi;
import 'package:package_info_plus/package_info_plus.dart';
import 'package:url_launcher/url_launcher_string.dart';

Expand All @@ -22,6 +20,9 @@ import '../../../utils/get_app_theme.dart';
import '../../bbs/bbs_infobar.dart';
import '../app_icon.dart';

import 'package:material_design_icons_flutter/material_design_icons_flutter.dart'
as mdi;

class AppConfigInfoWidget extends ConsumerStatefulWidget {
const AppConfigInfoWidget({super.key});

Expand Down
4 changes: 2 additions & 2 deletions macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import just_audio
import macos_window_utils
import package_info_plus
import path_provider_foundation
import screen_retriever
import screen_retriever_macos
import sqflite_darwin
import system_theme
import url_launcher_macos
Expand All @@ -31,7 +31,7 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
MacOSWindowUtilsPlugin.register(with: registry.registrar(forPlugin: "MacOSWindowUtilsPlugin"))
FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
ScreenRetrieverPlugin.register(with: registry.registrar(forPlugin: "ScreenRetrieverPlugin"))
ScreenRetrieverMacosPlugin.register(with: registry.registrar(forPlugin: "ScreenRetrieverMacosPlugin"))
SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
SystemThemePlugin.register(with: registry.registrar(forPlugin: "SystemThemePlugin"))
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
Expand Down
Loading

0 comments on commit f6cb42d

Please sign in to comment.