Skip to content

Commit

Permalink
Restart
Browse files Browse the repository at this point in the history
  • Loading branch information
pugaizai authored and madoka773 committed Aug 31, 2024
1 parent 858dc6b commit 59962bf
Show file tree
Hide file tree
Showing 41 changed files with 1,709 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
74 changes: 74 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Build

on:
push

jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v4
with:
submodules: true

- name: Install build depends
run: |
sudo apt update
sudo apt install flatpak flatpak-builder qemu-system-arm qemu-user-static
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}

- name: Build
run: |
git config --global protocol.file.allow always
flatpak-builder build-dir manifests/cn.wps.office/cn.wps.office.yaml --repo=repo --arch=x86_64 --default-branch=stable --force-clean --user --install-deps-from=flathub --gpg-sign=${{ secrets.GPG_KEY_FINGERPRINT }} --ccache --disable-rofiles-fuse
flatpak-builder build-dir manifests/com.xiaoyaocz.dmzjx/com.xiaoyaocz.dmzjx.yaml --repo=repo --arch=x86_64 --default-branch=stable --force-clean --user --install-deps-from=flathub --gpg-sign=${{ secrets.GPG_KEY_FINGERPRINT }} --ccache --disable-rofiles-fuse
flatpak-builder build-dir manifests/com.xiaoyaocz.simplelive/com.xiaoyaocz.simplelive.yaml --repo=repo --arch=x86_64 --default-branch=stable --force-clean --user --install-deps-from=flathub --gpg-sign=${{ secrets.GPG_KEY_FINGERPRINT }} --ccache --disable-rofiles-fuse
flatpak-builder build-dir manifests/top.jtmonster.jhentai/top.jtmonster.jhentai.yaml --repo=repo --arch=x86_64 --default-branch=stable --force-clean --user --install-deps-from=flathub --gpg-sign=${{ secrets.GPG_KEY_FINGERPRINT }} --ccache --disable-rofiles-fuse
flatpak-builder build-dir manifests/io.github.predidit.k azumi/io.github.predidit.kazumi.yaml --repo=repo --arch=x86_64 --default-branch=stable --force-clean --user --install-deps-from=flathub --gpg-sign=${{ secrets.GPG_KEY_FINGERPRINT }} --ccache --disable-rofiles-fuse
flatpak-builder build-dir manifests/com.qq.docs/com.qq.docs.yaml --repo=repo --arch=x86_64 --default-branch=stable --force-clean --user --install-deps-from=flathub --gpg-sign=${{ secrets.GPG_KEY_FINGERPRINT }} --ccache --disable-rofiles-fuse
flatpak-builder build-dir manifests/com.qq.docs/com.qq.docs.yaml --repo=repo --arch=aarch64 --default-branch=stable --force-clean --user --install-deps-from=flathub --gpg-sign=${{ secrets.GPG_KEY_FINGERPRINT }} --ccache --disable-rofiles-fuse
flatpak-builder build-dir manifests/com.qq.qqmusic/com.qq.qqmusic.yaml --repo=repo --arch=x86_64 --default-branch=stable --force-clean --user --install-deps-from=flathub --gpg-sign=${{ secrets.GPG_KEY_FINGERPRINT }} --ccache --disable-rofiles-fuse
flatpak-builder build-dir manifests/com.qq.qqmusic/com.qq.qqmusic.yaml --repo=repo --arch=aarch64 --default-branch=stable --force-clean --user --install-deps-from=flathub --gpg-sign=${{ secrets.GPG_KEY_FINGERPRINT }} --ccache --disable-rofiles-fuse
flatpak-builder build-dir manifests/io.github.c0re100.qBittorrent-Enhanced-Edition/io.github.c0re100.qBittorrent-Enhanced-Edition.yaml --repo=repo --arch=x86_64 --default-branch=stable --force-clean --user --install-deps-from=flathub --gpg-sign=${{ secrets.GPG_KEY_FINGERPRINT }} --ccache --disable-rofiles-fuse
flatpak-builder build-dir manifests/io.github.c0re100.qBittorrent-Enhanced-Edition/io.github.c0re100.qBittorrent-Enhanced-Edition.yaml --repo=repo --arch=aarch64 --default-branch=stable --force-clean --user --install-deps-from=flathub --gpg-sign=${{ secrets.GPG_KEY_FINGERPRINT }} --ccache --disable-rofiles-fuse
flatpak-builder build-dir manifests/io.github.msojocs.bilibili/io.github.msojocs.bilibili.yaml --repo=repo --arch=x86_64 --default-branch=stable --force-clean --user --install-deps-from=flathub --gpg-sign=${{ secrets.GPG_KEY_FINGERPRINT }} --ccache --disable-rofiles-fuse
flatpak-builder build-dir manifests/io.github.msojocs.bilibili/io.github.msojocs.bilibili.yaml --repo=repo --arch=aarch64 --default-branch=stable --force-clean --user --install-deps-from=flathub --gpg-sign=${{ secrets.GPG_KEY_FINGERPRINT }} --ccache --disable-rofiles-fuse
flatpak-builder build-dir manifests/org.freedesktop.xorg.xeyes/org.freedesktop.xorg.xeyes.yaml --repo=repo --arch=x86_64 --default-branch=stable --force-clean --user --install-deps-from=flathub --gpg-sign=${{ secrets.GPG_KEY_FINGERPRINT }} --ccache --disable-rofiles-fuse
flatpak-builder build-dir manifests/org.freedesktop.xorg.xeyes/org.freedesktop.xorg.xeyes.yaml --repo=repo --arch=aarch64 --default-branch=stable --force-clean --user --install-deps-from=flathub --gpg-sign=${{ secrets.GPG_KEY_FINGERPRINT }} --ccache --disable-rofiles-fuse
- name: Sign repo
run: |
flatpak build-sign repo --gpg-sign=${{ secrets.GPG_KEY_FINGERPRINT }}
flatpak build-update-repo repo --gpg-sign=${{ secrets.GPG_KEY_FINGERPRINT }} --generate-static-deltas
- name: Upload to R2
uses: ryand56/r2-upload-action@latest # Can be any release
with:
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
r2-bucket: ${{ secrets.R2_BUCKET }}
source-dir: repo
destination-dir: repo # Can be anything as long as it is an actual path
output-file-url: 'true' # defaults to true
multipart-size: 100 # If the file size is greater than the value provided here, then use multipart upload
max-retries: 5 # The maximum number of retries it takes to upload a multipart chunk until it moves on to the next part
multipart-concurrent: true # Whether to concurrently upload a multipart chunk
keep-file-fresh: 'true' # defaults to false
39 changes: 39 additions & 0 deletions .github/workflows/update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Update

on:
push:
paths:
- .github/workflow/update.yaml
schedule: # for scheduling to work this file must be in the default branch
- cron: "0 12 * * *" # 每天中午12点运行一次
workflow_dispatch:

jobs:
flatpak-external-data-checker:
runs-on: ubuntu-latest

strategy:
matrix:
appid: # list all flatpak application id to check
- cn.wps.office
- com.qq.docs
- com.qq.qqmusic
- com.xiaoyaocz.dmzjx
- com.xiaoyaocz.simplelive
- io.github.c0re100.qBittorrent-Enhanced-Edition
- io.github.msojocs.bilibili
- io.github.predidit.kazumi
- org.freedesktop.xorg.xeyes
- top.jtmonster.jhentai
steps:
- uses: actions/checkout@v4
- uses: docker://ghcr.io/flathub/flatpak-external-data-checker:latest
env:
GIT_AUTHOR_NAME: Flatpak External Data Checker
GIT_COMMITTER_NAME: Flatpak External Data Checker
# email sets "github-actions[bot]" as commit author, see https://github.community/t/github-actions-bot-email-address/17204/6
GIT_AUTHOR_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
GIT_COMMITTER_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: --update --never-fork manifests/${{ matrix.appid }}/${{ matrix.appid }}.yaml # e.g. com.organization.myapp.json
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.flatpak-builder/
build-dir/
repo/
manifests/cn.wps.Office/locales/cn.wps.Office.spellcheck.*.yml
manifests/cn.wps.Office/locales/cn.wps.Office.spellcheck.*.metainfo.xml
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "manifests/cn.wps.office/shared-modules"]
path = manifests/cn.wps.office/shared-modules
url = https://github.com/flathub/shared-modules.git
[submodule "manifests/io.github.predidit.kazumi/shared-modules"]
path = manifests/io.github.predidit.kazumi/shared-modules
url = https://github.com/flathub/shared-modules.git
58 changes: 57 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,57 @@
# flatpak
# Pugaizai's Flatpaks

## Use My Repo (X86_64 Only)

### Add Repo

`flatpak remote-add --if-not-exists pugai https://flatpak.pugai.life/pugai.flatpakrepo`

### Install Something

`flatpak install pugai <application-id> -y`

### Update

`flatpak update -y`

### Remove

`flatpak remove <application-id> -y`

### Remove Repo

`flatpak remote-delete pugai -y`

## Or Build Your Own

### Install Flatpak Builder

`flatpak install org.flatpak.Builder`

### Clone

`git clone https://github.com/pugaizai/flatpak.git --recursive`

### Build

`flatpak run org.flatpak.Builder build-dir manifests/<application-id>/<application-id>.yaml --repo=repo --force-clean --install-deps-from=flathub --ccache`

### Add Repo

`flatpak --user remote-add --no-gpg-verify local repo`

### Install

`flatpak --user install local <application-id>`

### Update

`flatpak update`

### Remove

`flatpak remove <application-id> -y`

### Remove Repo

`flatpak remote-delete local -y`
55 changes: 55 additions & 0 deletions manifests/cn.wps.office/apply_extra
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#!/bin/bash
set -e
shopt -s failglob
FLATPAK_ID="${FLATPAK_ID:-cn.wps.office}"

mkdir -p deb-package export/share

bsdtar --to-stdout -xf wps-office.deb data.tar.xz | bsdtar -xf - -C deb-package

mv deb-package/opt/kingsoft/wps-office .
mv deb-package/usr/bin/{wps,wpp,et,wpspdf} wps-office/
mv deb-package/usr/share/{icons,applications,mime} export/share/

YEAR_SUFFIX=2019

rename --no-overwrite "wps-office-" "${FLATPAK_ID}." export/share/{icons/hicolor/*/*,applications,mime/packages}/wps-office-*.*
rename --no-overwrite "wps-office${YEAR_SUFFIX}-" "${FLATPAK_ID}." export/share/icons/hicolor/*/*/wps-office${YEAR_SUFFIX}-*.*

for a in wps wpp et pdf prometheus; do
desktop_file="export/share/applications/${FLATPAK_ID}.$a.desktop"
appbin="$a"
appicon="${FLATPAK_ID}.${a}main"
case "$a" in
pdf)
appbin=wpspdf
;;
prometheus)
appbin=wps
appicon="${FLATPAK_ID}.k${a}"
# Use this as the main .desktop file for the Flatpak
new_desktop_file="$(dirname $desktop_file)/${FLATPAK_ID}.desktop"
mv $desktop_file $new_desktop_file
desktop_file=$new_desktop_file
;;
esac
desktop-file-edit \
--set-key="Exec" --set-value="$appbin %f" \
--set-key="Icon" --set-value="$appicon" \
--set-key="X-Flatpak-RenamedFrom" --set-value="wps-office-$a.desktop;" \
"$desktop_file"
done
sed -i "s/generic-icon name=\"wps-office-/icon name=\"${FLATPAK_ID}./g" "export/share/mime/packages/${FLATPAK_ID}".*.xml

# Just use libstdc++.so.6 from the runtime; allows working with runtime 22.08+
rm wps-office/office6/libstdc++.so.6

rm -r wps-office.deb deb-package

# Remove plugin path so we can override the default path with based on QT_PLUGIN_PATH
sed -i 's|^Plugins=.*||g' wps-office/office6/qt.conf

# Fix wps deprecated python2 command
# https://aur.archlinux.org/cgit/aur.git/tree/fix-wps-python-parse.patch?h=wps-office-cn
sed -i 's/python -c '\''import sys, urllib; print urllib.unquote(sys.argv\[1\])'\''/python -c '\''import sys, urllib.parse; print(urllib.parse.unquote(sys.argv[1]))'\''/' wps-office/wps

21 changes: 21 additions & 0 deletions manifests/cn.wps.office/cn.wps.office.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[Desktop Entry]
Comment=Use WPS Writer to office work.
Comment[zh_CN]=使用 WPS 2019进行办公
Exec=wps %f
GenericName=WPS
GenericName[zh_CN]=WPS 2019
Name=WPS 2019
Name[zh_CN]=WPS 2019
StartupNotify=false
Terminal=false
Type=Application
Categories=Office;WordProcessor;Qt;
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
Icon=cn.wps.office
InitialPreference=3
StartupWMClass=wpsoffice
X-Desktop-File-Install-Version=0.26
X-Flatpak-RenamedFrom=wps-office-prometheus.desktop;
102 changes: 102 additions & 0 deletions manifests/cn.wps.office/cn.wps.office.metainfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>cn.wps.office</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>LicenseRef-proprietary=http://wps-community.org/license.md</project_license>
<name>WPS Office (Chinese Edition)</name>
<summary>WPS Office Suite (Chinese Edition)</summary>
<description>
<p>WPS Office including Writer, Presentation
and Spreadsheets, is a powerful office suite, which is able to process
word file, produce wonderful slides, and analyze data as well. It is
deeply compatible with all of the latest Microsoft Office file formats.
It can easily open and read the documents created with Microsoft Office.</p>
<p>NOTE: This wrapper is not verified by, affiliated with, or
supported by Kingsoft Office Corporation</p>
</description>
<icon type="remote">https://www.wps.com/_content/images/about/logo.png</icon>
<url type="homepage">https://www.wps.com/linux</url>
<url type="bugtracker">http://community.wps.cn/bug/login_page.php</url>
<url type="donation">http://wps-community.org/donate</url>
<url type="faq">http://wps-community.org/faq</url>
<url type="help">http://community.wps.cn/wiki</url>
<url type="translate">https://github.com/wps-community/wps_i18n</url>
<developer_name>Kingsoft Office Corporation</developer_name>
<update_contact>wps_linux_at_kingsoft.com</update_contact>
​<launchable type="desktop-id">cn.wps.office.desktop</launchable>
<categories>
<category>Office</category>
</categories>
<releases>
<release version="11.1.0.11723" date="2024-07-29">
<description></description>
</release>
<release version="11.1.0.11720" date="2024-07-26"/>
<release version="11.1.0.11719" date="2024-02-21"/>
<release version="11.1.0.11698" date="2023-04-28"/>
<release version="11.1.0.11691" date="2023-02-02"/>
<release version="11.1.0.11664" date="2022-06-08"/>
<release version="11.1.0.10976" date="2022-04-20"/>
<release version="11.1.0.10920" date="2022-01-18"/>
<release version="11.1.0.10702" date="2021-08-05"/>
<release version="11.1.0.10161" date="2021-01-14"/>
<release version="11.1.0.9719" date="2020-10-28"/>
<release version="11.1.0.9711" date="2020-10-21"/>
<release version="11.1.0.9662" date="2020-09-22"/>
<release version="11.1.0.9615" date="2020-07-20"/>
<release version="11.1.0.9604" date="2020-07-08"/>
<release version="11.1.0.9522" date="2020-06-06"/>
<release version="11.1.0.9505" date="2020-04-08"/>
<release version="11.1.0.9126" date="2020-02-27"/>
<release version="11.1.0.9080" date="2020-01-09"/>
<release version="11.1.0.8865" date="2019-09-11"/>
<release version="11.1.0.8722" date="2019-07-05"/>
<release version="11.1.0.8392" date="2019-04-15"/>
<release version="11.1.0.8372" date="2019-04-02"/>
<release version="10.1.0.6758" date="2019-03-09"/>
<release version="10.1.0.6757" date="2018-09-11">
<description>
<ul>
<li>Support users' online feedback</li>
<li>Support Chinese and English language switching</li>
<li>WPS Writer and WPS Presentation, supporting editing of 15 SmartArt types</li>
<li>Support custom quick access toolbar</li>
<li>Support Manual directory function, which can be inserted without setting outline level</li>
<li>Support "text sort" and "table sort"</li>
<li>Support printing background color, pictures and setting Web format background</li>
<li>Support automatic text collection</li>
<li>Support artistic page borders</li>
<li>Support to accept/reject format revisions</li>
<li>Support to keep source format paste within process</li>
<li>The new pivot table kernel supports grouping, calculation items, calculation fields, table style, slicer and other functions</li>
<li>Support pivot chart</li>
<li>Support automatic filtering - color sorting</li>
<li>Monochrome printing is supported in page Settings</li>
<li>Support sharing workbook</li>
<li>Print the entire workbook under the print preview TAB</li>
<li>The digital format supports the locale</li>
<li>Support custom views</li>
<li>Support to read and play the animation of smartart child nodes</li>
<li>Support "font preview" function</li>
<li>Combine audio and background music entry, add audio tools TAB, and adjust media object toolbar synchronously</li>
<li>Support batch delete remarks function</li>
<li>In the comments pane of the speaker view, add the zoom button and adjust the text size</li>
<li>Support to insert media embedded into documents through the interface entrance</li>
</ul>
</description>
</release>
<release version="10.1.0.5707~a21" date="2017-06-15"/>
</releases>
<screenshots>
<screenshot type="default">
<image>https://website-prod.cache.wpscdn.com/img/slider_3.c233a64.png</image>
</screenshot>
<screenshot>
<image>https://website-prod.cache.wpscdn.com/img/slider_1.3a423d4.png</image>
</screenshot>
<screenshot>
<image>https://website-prod.cache.wpscdn.com/img/slider_4.c704a50.png</image>
</screenshot>
</screenshots>
<content_rating type="oars-1.1"/>
</component>
Loading

0 comments on commit 59962bf

Please sign in to comment.