-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:lxgr-linux/pokete into 267-multip…
…layer-mode
- Loading branch information
Showing
53 changed files
with
1,570 additions
and
554 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
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 |
---|---|---|
|
@@ -22,13 +22,16 @@ jobs: | |
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: Cache | ||
uses: actions/[email protected] | ||
with: | ||
# A list of files, directories, and wildcard patterns to cache and restore | ||
path: | | ||
~/.cache/pip3 | ||
~/.cache/pip | ||
/usr/bin/pandoc | ||
# An explicit key for restoring and saving the cache | ||
key: ${{ runner.os }}-dependencies | ||
|
@@ -37,14 +40,15 @@ jobs: | |
- name: Install dependecies | ||
if: steps.cache-dependencies.outputs.cache-hit != 'true' | ||
run: | | ||
pip3 install scrap_engine pdoc3 | ||
pip install scrap_engine pdoc3 pyyaml | ||
sudo apt-get -qq install pandoc | ||
- name: Preprocess page files | ||
run: | | ||
python3 ./prepare_pages.py before | ||
mkdir /tmp/pokete | ||
python util.py prepare-pages before | ||
cp -r ./assets/ /tmp/assets | ||
cp ./prepare_pages.py /tmp/prepare_pages.py | ||
cp -r ./* /tmp/pokete | ||
- name: Switch branch to gh-pages | ||
uses: actions/checkout/@v2 | ||
with: | ||
|
@@ -53,11 +57,12 @@ jobs: | |
run: | | ||
rm -rf ./assets ./wiki-multi | ||
mv '/tmp/assets/' . | ||
python3 /tmp/prepare_pages.py after | ||
python /tmp/pokete/util.py prepare-pages after | ||
# Push to github_pages | ||
- name: Release documentation | ||
run: | | ||
git config --local user.name ${{ github.actor }} | ||
git config --local user.name ${{ github.actor }} | ||
git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" | ||
if [[ $(git diff) != "" ]] | ||
then | ||
git add . | ||
|
@@ -79,25 +84,28 @@ jobs: | |
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: Cache | ||
uses: actions/[email protected] | ||
with: | ||
# A list of files, directories, and wildcard patterns to cache and restore | ||
path: | | ||
~/.cache/pip3 | ||
~/.cache/pip | ||
# An explicit key for restoring and saving the cache | ||
key: ${{ runner.os }}-dependencies | ||
|
||
# Runs a single command using the runners shell | ||
- name: Install dependecies | ||
if: steps.cache-dependencies.outputs.cache-hit != 'true' | ||
run: | | ||
pip3 install scrap_engine | ||
pip install scrap_engine pyyaml | ||
- name: Make multipage wiki | ||
run: | | ||
python3 gen_wiki.py verbose single multi pics | ||
python util.py wiki --verbose --single --multi --pics | ||
mkdir /tmp/gen-wiki | ||
cp -r HowToPlay.md DevGuide.md wiki.md /tmp/gen-wiki | ||
- name: Switch to wiki repository | ||
|
@@ -112,6 +120,7 @@ jobs: | |
- name: Release documentation | ||
run: | | ||
git config --local user.name ${{ github.actor }} | ||
git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" | ||
if [[ $(git diff) != "" ]] | ||
then | ||
git add . | ||
|
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
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 |
---|---|---|
@@ -1,70 +1,53 @@ | ||
# appimage-builder recipe see https://appimage-builder.readthedocs.io for details | ||
version: 1 | ||
script: | ||
- rm -rf AppDir | true | ||
- mkdir -p AppDir/usr/share/icons | ||
- git clone --depth=1 https://github.com/lxgr-linux/pokete AppDir/usr/share/pokete | ||
- git clone --depth=1 https://github.com/lxgr-linux/scrap_engine AppDir/usr/share/scrap_engine | ||
- cp AppDir/usr/share/scrap_engine/scrap_engine.py AppDir/usr/share/pokete/ | ||
- cp AppDir/usr/share/pokete/assets/pokete.svg AppDir/usr/share/icons/pokete.svg | ||
|
||
AppDir: | ||
path: AppDir | ||
app_info: | ||
id: com.github.lxgr-linux.pokete | ||
name: Pokete | ||
icon: pokete | ||
version: 0.8.0 | ||
exec: usr/bin/python3.10 | ||
exec_args: $APPDIR/usr/share/pokete/pokete.py --log $@ | ||
# pacman: | ||
# include: | ||
# - python | ||
# exclude: [] | ||
exec_args: $APPDIR/usr/bin/pokete.py --log $@ | ||
icon: com.github.lxgr_linux.pokete | ||
id: com.github.lxgr_linux.pokete | ||
name: Pokete | ||
version: 0.9.2 | ||
apt: | ||
arch: amd64 | ||
sources: | ||
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse' | ||
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c' | ||
include: | ||
- python3.10 | ||
exclude: | ||
- perl | ||
- gcc-12-base | ||
- perl | ||
- gcc-12-base | ||
include: | ||
- python3.10 | ||
sources: | ||
- key_url: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c | ||
sourceline: deb [arch=amd64] https://archive.ubuntu.com/ubuntu/ jammy main restricted | ||
universe multiverse | ||
files: | ||
include: [] | ||
exclude: | ||
- usr/share/man | ||
- usr/share/pokete/bash | ||
- usr/share/pokete/.git | ||
- usr/share/pokete/prepare_pages.py | ||
- usr/share/pokete/gen_wiki.py./ | ||
- usr/share/pokete/*.md | ||
- usr/share/scrap_engine | ||
- usr/share/pokete/playsound/libplaysound.dll | ||
- usr/share/pokete/playsound/libplaysound.osx.so | ||
- usr/share/pokete/assets/ss | ||
- usr/share/pokete/assets/*.png | ||
- usr/share/pokete/assets/*.kra | ||
- usr/share/pokete/assets/*.svg | ||
- usr/share/doc | ||
- pokete | ||
- usr/share/scrap_engine | ||
- usr/share/pokete/playsound/libplaysound.dll | ||
- usr/share/pokete/playsound/libplaysound.osx.so | ||
include: [] | ||
path: AppDir | ||
test: | ||
fedora-30: | ||
image: appimagecrafters/tests-env:fedora-30 | ||
command: ./AppRun | ||
debian-stable: | ||
image: appimagecrafters/tests-env:debian-stable | ||
command: ./AppRun | ||
archlinux-latest: | ||
image: appimagecrafters/tests-env:archlinux-latest | ||
command: ./AppRun | ||
image: appimagecrafters/tests-env:archlinux-latest | ||
centos-7: | ||
command: ./AppRun | ||
image: appimagecrafters/tests-env:centos-7 | ||
debian-stable: | ||
command: ./AppRun | ||
image: appimagecrafters/tests-env:debian-stable | ||
fedora-30: | ||
command: ./AppRun | ||
image: appimagecrafters/tests-env:fedora-30 | ||
ubuntu-xenial: | ||
image: appimagecrafters/tests-env:ubuntu-xenial | ||
command: ./AppRun | ||
image: appimagecrafters/tests-env:ubuntu-xenial | ||
AppImage: | ||
arch: x86_64 | ||
comp: gzip | ||
update-information: guess | ||
script: | ||
- rm -rf AppDir | true | ||
- git clone --depth=1 https://github.com/lxgr-linux/pokete | ||
- git clone --depth=1 https://github.com/lxgr-linux/scrap_engine AppDir/usr/share/scrap_engine | ||
- cd ./pokete && python3.10 ./util.py install AppDir/usr | ||
version: 1 |
Binary file not shown.
Binary file not shown.
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
File renamed without changes
Oops, something went wrong.