-
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.
- Loading branch information
1 parent
7632a61
commit 9c0a1a1
Showing
5 changed files
with
172 additions
and
14 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,62 @@ | ||
name: デプロイ(snap) | ||
run-name: Building Miria's Snap package | ||
on: | ||
workflow_dispatch: | ||
release: | ||
type: [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@v3 | ||
|
||
- name: Convert Icon image to 256x256 | ||
run: | | ||
sudo apt install -y imagemagick | ||
convert assets/images/icon.png -resize 256x256 snap/gui/miria.png | ||
rm assets/images/icon_adaptive.png | ||
- name: Setup QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Build Snap | ||
id: snapcraft | ||
uses: diddlesnaps/snapcraft-multiarch-action@v1 | ||
with: | ||
architecture: ${{ matrix.platform }} | ||
|
||
- name: Get Build Version | ||
run: | | ||
echo "VERSION=$(cat pubspec.yaml | grep version | cut -d ' ' -f 2)" >> $GITHUB_ENV | ||
- name: Upload snap | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
gh release upload v$VERSION ${{ steps.snapcraft.outputs.snap }} | ||
# https://github.com/snapcore/action-publish | ||
# Snap Storeでパッケージ名"miria"を予約後、"SNAPCRAFT_STORE_CREDENTIALS"を登録し、 | ||
# 以下をコメントアウトを解除することでSnap Storeへアップロードすることが可能です。 | ||
# Snap Storeでの公開後は、上記の"Upload snap"をコメントアウトしてください。 | ||
# (通常、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: edge | ||
|
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,12 @@ | ||
[Desktop Entry] | ||
Version=1.0 | ||
Name=Miria | ||
GenericName=Miria | ||
Type=Application | ||
Exec=miria | ||
Icon=${SNAP}/meta/gui/miria.png | ||
Comment=Misskey client app for mobile (Linux build) | ||
Comment[ja]=モバイル向けのMisskeyクライアントアプリ(Linux向けビルド) | ||
Keywords=Misskey;Miria;みりあ | ||
Terminal=false | ||
StartupNotify=false |
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,83 @@ | ||
name: miria # you probably want to 'snapcraft register <name>' | ||
title: Miria | ||
type: app | ||
summary: Misskey Client App # 79文字まで。 | ||
description: | | ||
Miriaは分散型SNS「Misskey」のクライアントアプリです。 | ||
機能 | ||
* タイムラインの閲覧やノートの投稿、「アンテナ」「チャンネル」「みつける」などの基本的な機能を利用することができます。 | ||
* 複数アカウント、複数サーバーに対応しています。(※2個目以降のアカウントを追加したあとは、アカウントに紐づくタブを追加する必要があります。) | ||
* 一部のMFMに対応しています。 | ||
* タブにカスタム絵文字を設定することができます。 | ||
* リアクションピッカーの精度が高く、ひらがなでも検索しやすくなっています。 | ||
* 投稿欄でMFMの入力補完をすることができ、MFMの構文やカスタム絵文字をスムーズに入力することができます。 | ||
* 配色を複数のパターンから切り替えることができます。 | ||
制限事項 | ||
* このアプリでは新規登録およびアカウント削除の機能を提供していません。新規登録や削除が必要な場合、登録や削除に必要な要件をそれぞれのサーバーへご確認ください。 | ||
* このアプリではサーバーを提供していません。このアプリと一緒に特定のサーバーを付随して提供していないので、このアプリ単独で利用することはできません。 | ||
* このアプリはMisskey v12以前のバージョンや、Firefish, Calckeyなどのフォークされたアプリケーションに対応していません。 | ||
* モバイル向けに開発されたアプリであることから、一部機能はデスクトップで動作しません。 | ||
注意:インストール後、パスワード管理サービスにアクセスできるように、下記のコマンドを実行してください。 | ||
`sudo snap connect miria:password-manager-service` | ||
license: AGPL-3.0 | ||
website: https://shiosyakeyakini.info/miria_web/index.html | ||
source-code: https://github.com/shiosyakeyakini-info/miria | ||
issues: https://github.com/shiosyakeyakini-info/miria/issues | ||
icon: assets/images/icon.png | ||
adopt-info: miria | ||
base: core22 # the base snap is the execution environment for this snap | ||
grade: stable | ||
confinement: strict | ||
compression: lzo | ||
architectures: | ||
- amd64 | ||
- arm64 | ||
|
||
apps: | ||
miria: | ||
command: miria | ||
extensions: [gnome] | ||
plugs: | ||
- home | ||
- unity7 | ||
- network | ||
- audio-playback | ||
- removable-media | ||
- password-manager-service | ||
|
||
parts: | ||
miria: | ||
# See 'snapcraft plugins' | ||
source: . | ||
plugin: flutter | ||
override-pull: | | ||
craftctl default | ||
craftctl set version=$(cat pubspec.yaml | grep "version[:]" | cut -d ' ' -f 2) | ||
flutter-target: lib/main.dart | ||
build-packages: | ||
- curl | ||
- libmpv-dev | ||
- libsecret-1-dev | ||
stage-packages: | ||
- libmpv1 | ||
- libsecret-1-0 | ||
# Integrate custom dialogs in your snap - doc - snapcraft.io | ||
# https://forum.snapcraft.io/t/integrate-custom-dialogs-in-your-snap/10825 | ||
zenity: | ||
plugin: nil | ||
stage-packages: | ||
- zenity | ||
prime: | ||
- usr/bin/zenity | ||
- usr/share/zenity/* | ||
|
||
layout: | ||
# Fix resource relocation problem of zenity part | ||
/usr/share/zenity: | ||
symlink: $SNAP/usr/share/zenity |