Skip to content

Commit

Permalink
v1.2.1 (#9)
Browse files Browse the repository at this point in the history
* feat: build apk for --split-per-abi

* fix: download url

* v1.2.1

* Update README.md
  • Loading branch information
nini22P authored Jan 26, 2025
1 parent 296e432 commit 7254627
Show file tree
Hide file tree
Showing 7 changed files with 150 additions and 32 deletions.
49 changes: 34 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@ jobs:
# Move the build output to the Iris directory
Move-Item -Path "build\windows\x64\runner\Release\*" -Destination "Iris" -Force
# Create a ZIP file
Compress-Archive -Path "Iris" -DestinationPath "Iris_windows.zip"
Compress-Archive -Path "Iris" -DestinationPath "Iris-windows.zip"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Iris-windows
path: Iris-windows.zip
- name: Rename ZIP archive
run: Rename-Item -Path "Iris-windows.zip" -NewName "Iris_windows.zip"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -69,14 +76,28 @@ jobs:
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> android/key.properties
echo "storeFile=keystore.jks" >> android/key.properties
- name: Build Flutter application for Android
run: flutter build apk
- name: Rename APK
run: mv build/app/outputs/flutter-apk/app-release.apk Iris_android.apk
- name: Upload Android artifact
run: flutter build apk --split-per-abi
- name: Rename armeabi-v7a APK
run: mv build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk Iris-android-armeabi-v7a.apk
- name: Rename arm64-v8a APK
run: mv build/app/outputs/flutter-apk/app-arm64-v8a-release.apk Iris-android-arm64-v8a.apk
- name: Rename x86_64 APK
run: mv build/app/outputs/flutter-apk/app-x86_64-release.apk Iris-android-x86_64.apk
- name: Upload armeabi-v7a APK
uses: actions/upload-artifact@v4
with:
name: Iris_android
path: Iris_android.apk
name: Iris-android-armeabi-v7a
path: Iris-android-armeabi-v7a.apk
- name: Upload arm64-v8a APK
uses: actions/upload-artifact@v4
with:
name: Iris-android-arm64-v8a
path: Iris-android-arm64-v8a.apk
- name: Upload x86_64 APK
uses: actions/upload-artifact@v4
with:
name: Iris-android-x86_64
path: Iris-android-x86_64.apk

release:
name: Release
Expand Down Expand Up @@ -104,16 +125,11 @@ jobs:
git push origin "$TAG_NAME"
- name: Eextract log
run: python extract_log.py ${{ steps.create_tag.outputs.TAG_NAME }}
- name: Download Windows artifact
uses: actions/download-artifact@v4
with:
name: Iris_windows
path: artifacts
- name: Download Android artifact
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: Iris_android
path: artifacts
merge-multiple: true
- name: Release
uses: softprops/action-gh-release@v2
env:
Expand All @@ -124,5 +140,8 @@ jobs:
draft: false
prerelease: false
files: |
artifacts/Iris-windows.zip
artifacts/Iris_windows.zip
artifacts/Iris_android.apk
artifacts/Iris-android-armeabi-v7a.apk
artifacts/Iris-android-arm64-v8a.apk
artifacts/Iris-android-x86_64.apk
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## v1.2.1

### Changelog
* Split APKs by architecture to reduce installation size.

### 更新日志
* 拆分不同架构的 APK 以减小安装包大小


## v1.2.0

### Changelog
Expand Down
47 changes: 46 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,52 @@ English | [中文](./README_CN.md)

## Download

[Windows](https://github.com/nini22P/Iris/releases/latest/download/Iris_windows.zip) | [Android](https://github.com/nini22P/Iris/releases/latest/download/Iris_android.apk)
### Windows
- [Iris-windows.zip](https://github.com/nini22P/Iris/releases/latest/download/Iris-windows.zip)

### Android
| Architecture | Download Link |
|-------------------|-------------------------------------------------------------------------|
| arm64-v8a | [Iris-android-arm64-v8a.apk](https://github.com/nini22P/Iris/releases/latest/download/Iris-android-arm64-v8a.apk) |
| armeabi-v7a | [Iris-android-armeabi-v7a.apk](https://github.com/nini22P/Iris/releases/latest/download/Iris-android-armeabi-v7a.apk) |
| x86_64 | [Iris-android-x86_64.apk](https://github.com/nini22P/Iris/releases/latest/download/Iris-android-x86_64.apk) |

## Keyboard and Gesture Controls

### Keyboard Controls
| Key | Description |
|----------------------|------------------------------------------|
| `Space` | Play / Pause / Select File |
| `Enter` | Enter Full Screen / Exit Full Screen / Select File |
| `F11` | Enter Full Screen / Exit Full Screen |
| `Arrow Left` | Fast backward 10 seconds |
| `Arrow Right` | Fast forward 10 seconds |
| `Ctrl + Arrow Left` | Previous |
| `Ctrl + Arrow Right` | Next |
| `Ctrl + X` | Shuffle |
| `Ctrl + R` | Repeat |
| `Ctrl + V` | Video Zoom |
| `F` | Save |
| `P` | Play Queue |
| `S` | Subtitles and Audio Tracks |
| `Ctrl + O` | Open File |
| `Ctrl + L` | Open Link |
| `Ctrl + H` | Play History |
| `Ctrl + P` | Settings |
| `Esc` | Exit Current Menu / Go Back / Close Full Screen |

### Gesture Controls
| Gesture | Description |
|----------------------|------------------------------------------|
| Tap | Select an item or open a menu |
| Double Tap Center | Play / Pause |
| Double Tap Left Side | Fast backward 10 seconds |
| Double Tap Right Side | Fast forward 10 seconds |
| Swipe Left / Right | Adjust playback progress |
| Swipe Up / Down on Left Side | Adjust screen brightness |
| Swipe Up / Down on Right Side | Adjust device volume |
| Long Press | Start Speed Playback |
| Long Press and Swipe Left/Right | Adjust Speed Playback Speed |

## Contribution

Expand Down
47 changes: 46 additions & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,52 @@

## 下载

[Windows](https://github.com/nini22P/Iris/releases/latest/download/Iris_windows.zip) | [Android](https://github.com/nini22P/Iris/releases/latest/download/Iris_android.apk)
### Windows
- [Iris-windows.zip](https://github.com/nini22P/Iris/releases/latest/download/Iris-windows.zip)

### Android
| 设备架构 | 下载链接 |
|------------------|--------------------------------------------------------------------------|
| arm64-v8a | [Iris-android-arm64-v8a.apk](https://github.com/nini22P/Iris/releases/latest/download/Iris-android-arm64-v8a.apk) |
| armeabi-v7a | [Iris-android-armeabi-v7a.apk](https://github.com/nini22P/Iris/releases/latest/download/Iris-android-armeabi-v7a.apk) |
| x86_64 | [Iris-android-x86_64.apk](https://github.com/nini22P/Iris/releases/latest/download/Iris-android-x86_64.apk) |

## 键位和手势

### 键位操作
| 键位 | 描述 |
|----------------------|----------------------------------------|
| `Space` | 播放 / 暂停 / 选择文件 |
| `Enter` | 进入全屏 / 退出全屏 / 选择文件 |
| `F11` | 进入全屏 / 退出全屏 |
| `Arrow Left` | 快退 10 秒 |
| `Arrow Right` | 快进 10 秒 |
| `Ctrl + Arrow Left` | 上一个 |
| `Ctrl + Arrow Right` | 下一个 |
| `Ctrl + X` | 随机 |
| `Ctrl + R` | 重复 |
| `Ctrl + V` | 视频缩放 |
| `F` | 存储 |
| `P` | 播放队列 |
| `S` | 字幕和音轨 |
| `Ctrl + O` | 打开文件 |
| `Ctrl + L` | 打开链接 |
| `Ctrl + H` | 播放历史 |
| `Ctrl + P` | 设置 |
| `Esc` | 退出当前菜单 / 返回上一级 / 关闭全屏 |

### 手势操作
| 手势 | 描述 |
|--------------------|----------------------------------------|
| 单击 | 选择项目或打开菜单 |
| 双击屏幕中心 | 播放 / 暂停 |
| 双击屏幕左侧 | 快退 10 秒 |
| 双击屏幕右侧 | 快进 10 秒 |
| 左右滑动 | 调整播放进度 |
| 屏幕左侧上下滑动 | 调整屏幕亮度 |
| 屏幕右侧上下滑动 | 调整设备音量 |
| 长按 | 启动倍速播放 |
| 长按后左右滑动 | 调整倍速播放的速度 |

## 贡献

Expand Down
20 changes: 10 additions & 10 deletions lib/pages/dialog/show_release_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ class ReleaseDialog extends HookWidget {
onPressed: () => launchURL(release.url),
child: Text(t.releasePage),
),
Visibility(
visible: !isDesktop,
child: TextButton(
onPressed: () {
launchURL(release.url);
Navigator.pop(context, 'OK');
},
child: Text(t.download),
),
),
// Visibility(
// visible: !isDesktop,
// child: TextButton(
// onPressed: () {
// launchURL(release.url);
// Navigator.pop(context, 'OK');
// },
// child: Text(t.download),
// ),
// ),
Visibility(
visible: isDesktop,
child: TextButton(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.2.0+3
version: 1.2.1+3

environment:
sdk: ^3.5.4
Expand Down
8 changes: 4 additions & 4 deletions windows/iris-updater.bat
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ goto :end

:version_found

set "download_url=https://github.com/nini22P/Iris/releases/latest/download/Iris_windows.zip"
set "zip_file=%download_folder%\Iris_windows.zip"
set "download_url=https://github.com/nini22P/Iris/releases/latest/download/Iris-windows.zip"
set "zip_file=%download_folder%\Iris-windows.zip"
set "extract_folder=%download_folder%"

title Download Iris !version_tag!
Expand All @@ -55,11 +55,11 @@ if %errorlevel% equ 0 (
)

if not exist "%zip_file%" (
echo Error: Failed to download Iris_windows.zip.
echo Error: Failed to download Iris-windows.zip.
goto :end
)

echo Extracting Iris_windows.zip...
echo Extracting Iris-windows.zip...
powershell -Command "try { Add-Type -Assembly 'System.IO.Compression.FileSystem'; [System.IO.Compression.ZipFile]::ExtractToDirectory('%zip_file%', '%extract_folder%'); } catch { Write-Host 'Error extracting zip: ' $_.Exception.Message; exit 1 }"

:: Check if Iris folder exists before moving
Expand Down

0 comments on commit 7254627

Please sign in to comment.