Skip to content
Merged

V3 #15

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 16 additions & 53 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,76 +7,39 @@ permissions:
contents: write

jobs:
build_matrix:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
outputs:
artiid: ${{ steps.artifact-upload-step.outputs.artifact-id }}
build_windows:
runs-on: windows-latest
steps:
- name: Check-out repository
- name: Clone repository
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
python-version: '3.12'
architecture: 'x64'
cache: 'pip'
cache-dependency-path: |
**/requirements*.txt
channel: stable

- name: Install Dependencies
- name: Init flutter env
run: |
pip install -r requirements.txt
pip install -i https://test.pypi.org/simple/ RinUI --no-deps
cd namepicker
flutter pub get

- name: Build Executable
- name: Build windows app
run: |
pyinstaller main.spec
python post_build.py
cd namepicker
flutter build windows

- name: Upload Artifacts
- name: Upload windows artifact
uses: actions/upload-artifact@v4
id: artifact-upload-step
with:
name: NamePicker-Action-${{ runner.os }}
name: NamePicker-action-windows
path: |
${{ github.workspace }}/dist/main
include-hidden-files: true

release:
needs: [build_matrix]
runs-on: ubuntu-latest
steps:
- name: Check-out repository
uses: actions/checkout@v4
- name: Prepare release
run: |
mkdir release
mkdir artifacts
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
run-id: ${{needs.build_matrix.outputs.artiid}}
- name: Prepare artifacts
run: |
mv ${{ github.workspace }}/artifacts/NamePicker-Action-Windows release/NamePicker-Action-Windows
mv ${{ github.workspace }}/artifacts/NamePicker-Action-Linux release/NamePicker-Action-Linux

- name: Zip artifact
run: |
zip -r release/NamePicker-Action-Windows.zip release/NamePicker-Action-Windows
zip -r release/NamePicker-Action-Linux.zip release/NamePicker-Action-Linux
namepicker\build\windows\x64\runner\Release

- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
${{ github.workspace }}/release/NamePicker-Action-Windows.zip
${{ github.workspace }}/release/NamePicker-Action-Linux.zip
${{ github.workspace }}\namepicker\build\windows\x64\runner\Release
body_path: CHANGELOG.md
draft: true
env:
Expand Down
48 changes: 47 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,50 @@ proto.zip
release
main.build
main.dist
.venv_legacy
.venv_legacy

# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.pub-cache/
.pub/
/build/

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
17 changes: 10 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
## Bug修复
> [!caution]
> ## 请勿在生产环境使用该版本!
>
> 该版本使用了flutter完全重构,缺失很多功能,并且可能存在一些潜在的Bug,仅供尝鲜
>
> 生产环境请使用v2.2.0d6 Release

- 修复URL Scheme注册异常的问题喵
## 实现的功能

## 已知Bug
- 抽选1-50的数字

- TOTP APP设置时看不到手动设置的代码(没啥头绪)
- 关于页面

- Linux版本构建文件无法打开(同理,没啥头绪)

- Linux下,浮窗几乎无法使用(Qt的已知问题,等待Qt开发者进行修复)
- 没了
8 changes: 0 additions & 8 deletions RinUI/config/rin_ui.json

This file was deleted.

Binary file removed assets/Firefly-heart.png
Binary file not shown.
Binary file removed assets/Firefly-no.png
Binary file not shown.
Binary file removed assets/Firefly-well.png
Binary file not shown.
Binary file removed assets/NamePickerCircle.png
Binary file not shown.
Binary file removed assets/Sam-Go.png
Binary file not shown.
Binary file removed assets/banner.png
Binary file not shown.
Binary file removed assets/favicon.ico
Binary file not shown.
1 change: 0 additions & 1 deletion config.json

This file was deleted.

12 changes: 0 additions & 12 deletions file.reg

This file was deleted.

Loading
Loading