Software manager for thinclient
This commit is contained in:
parent
8a4007efad
commit
908d02d84e
|
|
@ -0,0 +1,51 @@
|
|||
name: App Submission
|
||||
title: EDIT ME Include the app name and if it is a Package app or an Install based App
|
||||
description: Submit/Upload an app to be added Pi-Apps. For apps with a completed ZIP, install files, deb, or PR ONLY.
|
||||
labels: ["App Request","Zip/PR included"]
|
||||
body:
|
||||
- type: input
|
||||
id: app-name
|
||||
attributes:
|
||||
label: What is the name of the app?
|
||||
placeholder: Ex - Zoom, AndroidBuddy
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: host
|
||||
attributes:
|
||||
label: (Optional) Where is the app hosted?
|
||||
placeholder: Ex - Github link, Gitlab link, Sourceforge link
|
||||
validations:
|
||||
required: false
|
||||
|
||||
- type: textarea
|
||||
id: about
|
||||
attributes:
|
||||
label: About the app
|
||||
description: What is its main purpose? How does it work?
|
||||
placeholder: Tell us about the app here!
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: zip
|
||||
attributes:
|
||||
label: Upload file or Add PR Link
|
||||
description: "Upload your deb of the app, or a zip file for this app, or link an already opened PR or github repo/branch for your app, or if you have any other relevant files, upload or link them here."
|
||||
placeholder: "Tips: You can upload files here by clicking to expand the regular text-box"
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: checkboxes
|
||||
id: confirmations
|
||||
attributes:
|
||||
label: Confirmations
|
||||
description: All of the following MUST be met. If you can NOT check one of these boxes. Then do NOT create a GitHub Issue. We will close it. The checkboxes are made a requirement on purpose.
|
||||
options:
|
||||
- label: I have confirmed that this app is legal and not piracy.
|
||||
required: true
|
||||
- label: I have confirmed that this app has never been discussed in https://github.com/Botspot/pi-apps/issues and https://github.com/Botspot/pi-apps/pulls, and it is not in the Pi-Apps app list.
|
||||
required: true
|
||||
- label: I have confirmed that this app can run on Raspberry Pi.
|
||||
required: true
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
name: App suggestion
|
||||
title: EDIT ME Include the app name
|
||||
description: Suggest an app to be added Pi-Apps. pi-apps developers may choose to assist in adding your app suggestion.
|
||||
labels: App Request
|
||||
body:
|
||||
- type: input
|
||||
id: app-name
|
||||
attributes:
|
||||
label: What is the name of the app?
|
||||
placeholder: Ex - Zoom, AndroidBuddy
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: host
|
||||
attributes:
|
||||
label: (Optional) Where is the app hosted?
|
||||
placeholder: Ex - Github link, Gitlab link, Sourceforge link
|
||||
validations:
|
||||
required: false
|
||||
|
||||
- type: textarea
|
||||
id: about
|
||||
attributes:
|
||||
label: About the app
|
||||
description: What is its main purpose? How does it work?
|
||||
placeholder: Tell us about the app here!
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: checkboxes
|
||||
id: confirmations
|
||||
attributes:
|
||||
label: Confirmations
|
||||
description: All of the following MUST be met. If you can NOT check one of these boxes. Then do NOT create a GitHub Issue. We will close it. The checkboxes are made a requirement on purpose.
|
||||
options:
|
||||
- label: I have confirmed that this app is legal and not piracy.
|
||||
required: true
|
||||
- label: I have read the app eligibilty rubric https://github.com/Botspot/pi-apps/issues/185 and confirmed this app is suitable for addition in Pi-Apps.
|
||||
required: true
|
||||
- label: I have confirmed that this app has never been discussed in https://github.com/Botspot/pi-apps/issues and https://github.com/Botspot/pi-apps/pulls, and it is not in the Pi-Apps app list.
|
||||
required: true
|
||||
- label: I have confirmed that this app can run on Raspberry Pi.
|
||||
required: true
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
name: Bug Report
|
||||
description: App failing to install? Is it still around after uninstalling? Let us know!
|
||||
labels: ["bug"]
|
||||
body:
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Confirmations
|
||||
options:
|
||||
- label: I searched for similar bug reports in https://github.com/Botspot/pi-apps/issues and found none were relevant.
|
||||
required: true
|
||||
- label: I tried updating Pi-Apps and the issue is still not fixed. [How to update Pi-Apps?](https://pi-apps.io/wiki/getting-started/updating-pi-apps/)
|
||||
required: false
|
||||
- label: 'IMPORTANT: I promise to respond to comments on this issue and write a good bug report https://www.softwaretestinghelp.com/how-to-write-good-bug-report/'
|
||||
required: true
|
||||
- type: input
|
||||
id: desc
|
||||
attributes:
|
||||
label: What happened?
|
||||
description: Briefly explain what happened.
|
||||
placeholder: "Ex. 'App' won't install, 'App' unable to launch after update"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: desc-long
|
||||
attributes:
|
||||
label: Description
|
||||
description: A clear and concise description of what the bug is and any personal attempts you made to fix it.
|
||||
placeholder: Tell us more!
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: os
|
||||
attributes:
|
||||
label: What are your system specs (run the following command in your terminal)?
|
||||
description: ~/pi-apps/api get_device_info
|
||||
placeholder: |
|
||||
OS: Raspbian GNU/Linux 10 (buster)
|
||||
OS architecture: 32-bit
|
||||
Last updated Pi-Apps on: 11/04/2022
|
||||
Latest Pi-Apps version: 11/04/2022
|
||||
Kernel: armv7l 5.15.55-v7l+
|
||||
Device model: Raspberry Pi 4 Model B Rev 1.4
|
||||
Cpu name: Cortex-A72
|
||||
Ram size: 7.78 GB
|
||||
Raspberry Pi OS image version: 2021-01-11
|
||||
Language: en_US.UTF-8
|
||||
render: bash
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: log
|
||||
attributes:
|
||||
label: (Recommended) Error log? Terminal output? Debug messages?
|
||||
description: Please provide error log or terminal output, if available.
|
||||
placeholder: Paste your terminal output/error log here
|
||||
render: bash
|
||||
validations:
|
||||
required: false
|
||||
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
name: Suggestion
|
||||
description: "Have an idea for Pi-Apps and it's not a bug or an app request?"
|
||||
labels: suggestion
|
||||
body:
|
||||
- type: textarea
|
||||
id: idea
|
||||
attributes:
|
||||
label: Cool ideas?
|
||||
placeholder: Tell us about your idea here
|
||||
validations:
|
||||
required: true
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
name: Check PR
|
||||
on:
|
||||
pull_request_target:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
check-pr:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
# Runs a set of commands using the runners shell
|
||||
- name: chmod all install/install-32/install-64/uninstall to 775
|
||||
run: |
|
||||
cd $GITHUB_WORKSPACE
|
||||
chmod 775 ./apps/*/install ./apps/*/install-32 ./apps/*/install-64 ./apps/*/uninstall
|
||||
|
||||
|
||||
- name: Push changes to repo
|
||||
uses: EndBug/add-and-commit@v9 # You can change this to use a specific version.
|
||||
with:
|
||||
default_author: github_actions
|
||||
# The message for the commit.
|
||||
# Default: 'Commit from GitHub Actions (name of the workflow)'
|
||||
message: |
|
||||
Correct file permissions for install and uninstall files
|
||||
|
|
@ -0,0 +1,69 @@
|
|||
name: Create_Shlink_Links
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- 'apps/**'
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
create-links:
|
||||
runs-on: ubuntu-latest
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# Runs a set of commands using the runners shell
|
||||
- name: Run a multi-line script
|
||||
env:
|
||||
SHLINK_KEY: ${{ secrets.SHLINK_KEY }}
|
||||
run: |
|
||||
# get all available URLs
|
||||
online_shortcodes="$(curl -s -X 'GET' \
|
||||
'https://pi-apps-analytics.linkpc.net/rest/v2/short-urls?itemsPerPage=0' \
|
||||
-H 'accept: application/json' \
|
||||
-H "X-Api-Key: $SHLINK_KEY" | jq -r '( .shortUrls | .data | .[] | .shortCode )')"
|
||||
#create links
|
||||
applist="$(ls $GITHUB_WORKSPACE/apps | grep .)"
|
||||
# get local shortcodes
|
||||
local_shortcodes="$(echo "$applist" | tr -d ' ' | sed 's/[^a-zA-Z0-9]//g' | awk '{print "pi-apps-install-"$0}')"
|
||||
local_shortcodes+="$(echo ""; echo "$applist" | tr -d ' ' | sed 's/[^a-zA-Z0-9]//g' | awk '{print "pi-apps-uninstall-"$0}')"
|
||||
local_shortcodes+="$(echo ""; echo "$applist" | tr -d ' ' | sed 's/[^a-zA-Z0-9]//g' | awk '{print "pi-apps-update-"$0}')"
|
||||
|
||||
# add pi-apps function (this is all that is needed so don't source the whole api)
|
||||
list_subtract() { #Outputs a list of apps from stdin, minus the ones that appear in $1
|
||||
# for example, the following two inputs will be a match
|
||||
# Audacity
|
||||
# Audacity
|
||||
# while these two will NOT be a match
|
||||
# Multimedia/Audacity
|
||||
# .*/Audacity
|
||||
comm -23 - <(echo "$1" | sort)
|
||||
}
|
||||
|
||||
# needed shortcodes
|
||||
new_shortcodes="$(echo "$local_shortcodes" | sort | list_subtract "$online_shortcodes")"
|
||||
IFS=$'\n'
|
||||
for shortcode in $new_shortcodes ;do
|
||||
echo "Creating missing shortcode: $shortcode"
|
||||
curl -s -X 'POST' \
|
||||
'https://pi-apps-analytics.linkpc.net/rest/v2/short-urls' \
|
||||
-H 'accept: application/json' \
|
||||
-H "X-Api-Key: $SHLINK_KEY" \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{
|
||||
"longUrl": "https://github.com/Botspot/pi-apps",
|
||||
"validateUrl": true,
|
||||
"title": "You are not supposed to be here",
|
||||
"crawlable": false,
|
||||
"forwardQuery": true,
|
||||
"customSlug": "'$shortcode'",
|
||||
"findIfExists": true
|
||||
}'
|
||||
echo ""
|
||||
done
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
name: PR Greeting
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: opened
|
||||
issues:
|
||||
types: opened
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
greeting:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/first-interaction@v1.1.1
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
issue-message: |
|
||||
Hello there 👋
|
||||
Thanks for submitting your first issue to the Pi-Apps project! We'll try to get back to you as soon as possible.
|
||||
In the meantime, we encourage you join our [Discord server](https://discord.gg/RXSTvaUvuu), where you can ask any questions you might have.
|
||||
|
||||
Please respond as soon as possible if a Pi-Apps maintainer requests more information from you. Stale issues will be closed after a lengthy period of time with no response.
|
||||
pr-message: |
|
||||
Hello there 👋
|
||||
Thanks for submitting your first pull request to the Pi-Apps project! We'll review your contributions soon.
|
||||
In the meantime, we encourage you to read our [guide to creating an app](https://github.com/Botspot/pi-apps/wiki/Creating-an-app), and to join our [Discord server](https://discord.gg/RXSTvaUvuu), where you can ask us questions you might have.
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
name: sha1sum
|
||||
on:
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
sha1sum:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout pi-apps repo
|
||||
uses: actions/checkout@v3
|
||||
- name: hash all files
|
||||
run: |
|
||||
cd $GITHUB_WORKSPACE
|
||||
find . -path ./.git -prune -o -type f -exec sha1sum "{}" +
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
name: Shellcheck
|
||||
on:
|
||||
pull_request_target:
|
||||
branches:
|
||||
- master
|
||||
push:
|
||||
branches: '**'
|
||||
workflow_dispatch:
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
shellcheck:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- name: Checkout pi-apps repo
|
||||
uses: actions/checkout@v3
|
||||
if: github.event_name != 'pull_request_target'
|
||||
- name: Checkout pi-apps PR repo
|
||||
uses: actions/checkout@v3
|
||||
if: github.event_name == 'pull_request_target'
|
||||
with:
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
- name: Check vital scripts for errors
|
||||
run: |
|
||||
cd $GITHUB_WORKSPACE
|
||||
sudo apt install shellcheck wget -y
|
||||
if ! shellcheck api createapp gui install manage preload settings uninstall updater etc/preload-daemon etc/runonce-entries etc/terminal-run apps/*/install apps/*/install-32 apps/*/install-64 apps/*/uninstall --color=always | sed '0,/'$(echo -e "\033")'\[31m/!{q1}' ;then
|
||||
exit 1
|
||||
fi
|
||||
|
|
@ -0,0 +1,302 @@
|
|||
name: Test_Build
|
||||
|
||||
# Controls when the workflow will run
|
||||
on:
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
name:
|
||||
description: 'App Name, PR #, or zip URL'
|
||||
required: true
|
||||
default: ''
|
||||
buster:
|
||||
description: 'Build on PiOS Buster'
|
||||
required: true
|
||||
type: boolean
|
||||
bullseye:
|
||||
description: 'Build on PiOS Bullseye'
|
||||
required: true
|
||||
type: boolean
|
||||
architecture:
|
||||
type: choice
|
||||
description: 'For Buster/Bullseye, test on 32bit, 64bit, or Both if available'
|
||||
options:
|
||||
- 32bit
|
||||
- 64bit
|
||||
- Both
|
||||
bookworm_64:
|
||||
description: 'Build on PiOS Bookworm Beta'
|
||||
required: true
|
||||
type: boolean
|
||||
bionic_64:
|
||||
description: 'Build on Switchroot Ubuntu 5.1.1 Bionic 64bit'
|
||||
required: true
|
||||
type: boolean
|
||||
focal_64:
|
||||
description: 'Build on Nvidia Jetpack 35.3.1 Focal 64bit'
|
||||
required: true
|
||||
type: boolean
|
||||
jammy_64:
|
||||
description: 'Build on RPI Ubuntu Jammy 64bit'
|
||||
required: true
|
||||
type: boolean
|
||||
l4t_jammy_64:
|
||||
description: 'Build on L4T Ubuntu Jammy 64bit'
|
||||
required: true
|
||||
type: boolean
|
||||
lunar_64:
|
||||
description: 'Build on RPI Ubuntu Lunar 64bit'
|
||||
required: true
|
||||
type: boolean
|
||||
|
||||
run-name: Testing ${{ inputs.name }}
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
buster-32bit:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ inputs.buster && ( inputs.architecture == '32bit' || inputs.architecture == 'Both' ) }}
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Test installing app on buster armhf
|
||||
uses: theofficialgman/arm-runner-action@v12
|
||||
with:
|
||||
# this is a buster armhf image
|
||||
base_image: https://downloads.raspberrypi.org/raspios_oldstable_armhf/images/raspios_oldstable_armhf-2023-05-03/2023-05-03-raspios-buster-armhf.img.xz
|
||||
# bind mount the directory so any changes propogate to outside the chroot
|
||||
bind_mount_repository: yes
|
||||
|
||||
# give the image more space
|
||||
image_additional_mb: 5000
|
||||
|
||||
# set CPUs to use
|
||||
cpu: cortex-a7:cortex-a72
|
||||
|
||||
# use custom /proc/cpuinfo
|
||||
cpu_info: cpuinfo/raspberrypi_4b
|
||||
|
||||
# user runner name as default path
|
||||
copy_repository_path: /home/runner/pi-apps
|
||||
|
||||
# export github env back to outside the chroot
|
||||
export_github_env: yes
|
||||
|
||||
import_github_env: true
|
||||
|
||||
# set shell to bash
|
||||
shell: /bin/bash
|
||||
commands: |
|
||||
export name="${{ inputs.name }}"
|
||||
./.github/workflows/test_build_commands.sh
|
||||
|
||||
bullseye-32bit:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ inputs.bullseye && ( inputs.architecture == '32bit' || inputs.architecture == 'Both' ) }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Test installing app on bullseye armhf
|
||||
uses: theofficialgman/arm-runner-action@v12
|
||||
with:
|
||||
base_image: https://downloads.raspberrypi.org/raspios_armhf/images/raspios_armhf-2023-05-03/2023-05-03-raspios-bullseye-armhf.img.xz
|
||||
bind_mount_repository: yes
|
||||
image_additional_mb: 5000
|
||||
cpu: cortex-a7:cortex-a72
|
||||
cpu_info: cpuinfo/raspberrypi_4b
|
||||
copy_repository_path: /home/runner/pi-apps
|
||||
export_github_env: yes
|
||||
import_github_env: true
|
||||
shell: /bin/bash
|
||||
commands: |
|
||||
export name="${{ inputs.name }}"
|
||||
./.github/workflows/test_build_commands.sh
|
||||
|
||||
buster-64bit:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ inputs.buster && ( inputs.architecture == '64bit' || inputs.architecture == 'Both' ) }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Test installing app on buster arm64
|
||||
uses: theofficialgman/arm-runner-action@v12
|
||||
with:
|
||||
base_image: https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2021-05-28/2021-05-07-raspios-buster-arm64.zip
|
||||
bind_mount_repository: yes
|
||||
image_additional_mb: 5000
|
||||
cpu: cortex-a7:cortex-a72
|
||||
cpu_info: cpuinfo/raspberrypi_4b
|
||||
copy_repository_path: /home/runner/pi-apps
|
||||
export_github_env: yes
|
||||
import_github_env: true
|
||||
shell: /bin/bash
|
||||
commands: |
|
||||
export name="${{ inputs.name }}"
|
||||
./.github/workflows/test_build_commands.sh
|
||||
|
||||
bullseye-64bit:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ inputs.bullseye && ( inputs.architecture == '64bit' || inputs.architecture == 'Both' ) }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Test installing app on bullseye arm64
|
||||
uses: theofficialgman/arm-runner-action@v12
|
||||
with:
|
||||
base_image: https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2023-05-03/2023-05-03-raspios-bullseye-arm64.img.xz
|
||||
bind_mount_repository: yes
|
||||
image_additional_mb: 5000
|
||||
cpu: cortex-a7:cortex-a72
|
||||
cpu_info: cpuinfo/raspberrypi_4b
|
||||
copy_repository_path: /home/runner/pi-apps
|
||||
export_github_env: yes
|
||||
import_github_env: true
|
||||
shell: /bin/bash
|
||||
commands: |
|
||||
export name="${{ inputs.name }}"
|
||||
./.github/workflows/test_build_commands.sh
|
||||
|
||||
bookworm-64bit:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ inputs.bookworm_64 }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Test installing app on bookworm arm64
|
||||
uses: theofficialgman/arm-runner-action@v12
|
||||
with:
|
||||
base_image: ${{ secrets.RPIOS_BOOKWORM_URL }}
|
||||
bind_mount_repository: yes
|
||||
image_additional_mb: 5000
|
||||
# disable image caching to not leak the URL
|
||||
enable_image_caching: no
|
||||
cpu: cortex-a7:cortex-a72
|
||||
cpu_info: cpuinfo/raspberrypi_4b
|
||||
copy_repository_path: /home/runner/pi-apps
|
||||
export_github_env: yes
|
||||
import_github_env: true
|
||||
shell: /bin/bash
|
||||
commands: |
|
||||
export name="${{ inputs.name }}"
|
||||
./.github/workflows/test_build_commands.sh
|
||||
|
||||
bionic-64bit:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ inputs.bionic_64 }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Test installing app on bionic arm64
|
||||
uses: theofficialgman/arm-runner-action@v12
|
||||
with:
|
||||
base_image: https://download.switchroot.org/ubuntu/switchroot-ubuntu-5.1.1-2023-06-12.7z
|
||||
# add special arguments for switchroot image format
|
||||
bootpartition:
|
||||
rootpartition: 1
|
||||
bind_mount_repository: yes
|
||||
image_additional_mb: 5000
|
||||
# use TX1 ARM CPU cores
|
||||
cpu: cortex-a7:cortex-a57
|
||||
copy_repository_path: /home/runner/pi-apps
|
||||
export_github_env: yes
|
||||
import_github_env: true
|
||||
shell: /bin/bash
|
||||
commands: |
|
||||
export name="${{ inputs.name }}"
|
||||
./.github/workflows/test_build_commands.sh
|
||||
|
||||
focal-64bit:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ inputs.focal_64 }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Clear up some disk space
|
||||
run: |
|
||||
# Workaround to provide additional free space for testing.
|
||||
# https://github.com/actions/virtual-environments/issues/2840
|
||||
sudo rm -rf /usr/share/dotnet
|
||||
sudo rm -rf /opt/ghc
|
||||
sudo rm -rf "/usr/local/share/boost"
|
||||
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
||||
- name: Test installing app on focal arm64
|
||||
uses: theofficialgman/arm-runner-action@v12
|
||||
with:
|
||||
base_image: https://developer.nvidia.com/downloads/embedded/l4t/r35_release_v3.1/sd_card_b49/jp511-xnx-sd-card-image.zip
|
||||
bootpartition:
|
||||
rootpartition: 1
|
||||
bind_mount_repository: yes
|
||||
image_additional_mb: 5000
|
||||
enable_image_caching: no
|
||||
cpu: cortex-a7:cortex-a72
|
||||
copy_repository_path: /home/runner/pi-apps
|
||||
export_github_env: yes
|
||||
import_github_env: true
|
||||
shell: /bin/bash
|
||||
commands: |
|
||||
export name="${{ inputs.name }}"
|
||||
./.github/workflows/test_build_commands.sh
|
||||
|
||||
jammy-64bit:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ inputs.jammy_64 }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Test installing app on jammy arm64
|
||||
uses: theofficialgman/arm-runner-action@v12
|
||||
with:
|
||||
base_image: https://cdimage.ubuntu.com/releases/22.04.2/release/ubuntu-22.04.2-preinstalled-desktop-arm64+raspi.img.xz
|
||||
bind_mount_repository: yes
|
||||
image_additional_mb: 5000
|
||||
cpu: cortex-a7:cortex-a72
|
||||
cpu_info: cpuinfo/raspberrypi_4b
|
||||
copy_repository_path: /home/runner/pi-apps
|
||||
export_github_env: yes
|
||||
import_github_env: true
|
||||
shell: /bin/bash
|
||||
commands: |
|
||||
export name="${{ inputs.name }}"
|
||||
./.github/workflows/test_build_commands.sh
|
||||
|
||||
l4t-jammy-64bit:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ inputs.l4t_jammy_64 }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Test installing app on L4T jammy arm64
|
||||
uses: theofficialgman/arm-runner-action@v12
|
||||
with:
|
||||
base_image: https://github.com/theofficialgman/testing/releases/download/gmans-releases/theofficialgman-ubuntu-jammy-5.1.1-2023-08-19.7z
|
||||
# add special arguments for switchroot image format
|
||||
bootpartition:
|
||||
rootpartition: 1
|
||||
bind_mount_repository: yes
|
||||
image_additional_mb: 5000
|
||||
# use TX1 ARM CPU cores
|
||||
cpu: cortex-a7:cortex-a57
|
||||
copy_repository_path: /home/runner/pi-apps
|
||||
export_github_env: yes
|
||||
import_github_env: true
|
||||
shell: /bin/bash
|
||||
commands: |
|
||||
export name="${{ inputs.name }}"
|
||||
./.github/workflows/test_build_commands.sh
|
||||
|
||||
lunar-64bit:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ inputs.lunar_64 }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Test installing app on lunar arm64
|
||||
uses: theofficialgman/arm-runner-action@v12
|
||||
with:
|
||||
base_image: https://cdimage.ubuntu.com/releases/23.04/release/ubuntu-23.04-preinstalled-desktop-arm64+raspi.img.xz
|
||||
bind_mount_repository: yes
|
||||
image_additional_mb: 5000
|
||||
cpu: cortex-a7:cortex-a72
|
||||
cpu_info: cpuinfo/raspberrypi_4b
|
||||
copy_repository_path: /home/runner/pi-apps
|
||||
export_github_env: yes
|
||||
import_github_env: true
|
||||
shell: /bin/bash
|
||||
commands: |
|
||||
export name="${{ inputs.name }}"
|
||||
./.github/workflows/test_build_commands.sh
|
||||
|
|
@ -0,0 +1,270 @@
|
|||
#!/bin/bash
|
||||
|
||||
sudo chown runner:docker /home/runner
|
||||
# print user info
|
||||
echo $USER $USERNAME $(id) $(whoami)
|
||||
sudo bash -c 'echo $USER $USERNAME $(id) $(whoami)'
|
||||
echo "GITHUB_JOB: $GITHUB_JOB"
|
||||
|
||||
# set DIRECTORY variable
|
||||
DIRECTORY="$(pwd)"
|
||||
|
||||
# print date
|
||||
date
|
||||
|
||||
#necessary functions
|
||||
error() { #red text and exit 1
|
||||
echo -e "\e[91m$1\e[0m" 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
warning() { #yellow text
|
||||
echo -e "\e[93m\e[5m◢◣\e[25m WARNING: $1\e[0m" 1>&2
|
||||
}
|
||||
|
||||
status() { #cyan text to indicate what is happening
|
||||
|
||||
#detect if a flag was passed, and if so, pass it on to the echo command
|
||||
if [[ "$1" == '-'* ]] && [ ! -z "$2" ];then
|
||||
echo -e $1 "\e[96m$2\e[0m" 1>&2
|
||||
else
|
||||
echo -e "\e[96m$1\e[0m" 1>&2
|
||||
fi
|
||||
}
|
||||
|
||||
status_green() { #announce the success of a major action
|
||||
echo -e "\e[92m$1\e[0m" 1>&2
|
||||
}
|
||||
|
||||
import_zip() { #given a zipfile, extract it to apps directory and return the name of the app
|
||||
local import="$1"
|
||||
[ -z "$import" ] || [ ! -f "$import" ] && error "import_zip(): invalid input: '$import'"
|
||||
|
||||
#create a temporary directory to extract to
|
||||
local tmpdir="$(mktemp -d)" || error "Failed to create a temporaty folder for some reason.\nErrors:\n$tmpdir"
|
||||
#be sure to delete the temporary folder on exit
|
||||
trap "rm -rf '$tmpdir'" EXIT
|
||||
|
||||
#unzip to the temporary directory
|
||||
local errors="$(unzip "$import" -d "$tmpdir" 2>&1)" || error "Failed to extract '$import' to '$tmpdir'.\nErrors: $errors"
|
||||
|
||||
#some zip files have an inner directory that app-files are situated in; others don't.
|
||||
if [ "$(find "$tmpdir" -maxdepth 1 -type d | tail +2 | wc -l)" == 1 ] && [ "$(find "$tmpdir" -maxdepth 1 -type f | tail +2 | wc -l)" == 0 ];then
|
||||
#if the temporary directory contains exactly one folder and zero loose files
|
||||
echo "$(basename "$import") contains exactly one folder and zero loose files" 1>&2
|
||||
|
||||
local app_name="$(basename "$(find "$tmpdir" -maxdepth 1 -type d | tail +2)")"
|
||||
#return the name of the app
|
||||
echo "$app_name"
|
||||
[ -z "$app_name" ] && error "Failed to determine a name for the app, given this filename: '$import'"
|
||||
#remove the app from pi-apps first
|
||||
rm -rf "${DIRECTORY}/apps/${app_name}"
|
||||
|
||||
#then move the folder straight to the pi-apps folder
|
||||
mv -f "$(find "$tmpdir" -maxdepth 1 -type d | tail +2)" "${DIRECTORY}/apps"
|
||||
|
||||
else #if extracted archive did not contain exactly one folder and zero loose files
|
||||
echo "$(basename "$import") did not contain exactly one folder and zero loose files" 1>&2
|
||||
|
||||
#create a folder in the apps directory first
|
||||
newfolder="${DIRECTORY}/apps/$(basename "$import" | awk -F'.' '{print $1}')"
|
||||
[ "$newfolder" == "${DIRECTORY}/apps/" ] && error "Failed to determine a name for the app, given this filename: '$import'"
|
||||
rm -rf "$newfolder"
|
||||
mkdir -p "$newfolder"
|
||||
|
||||
#return the name of the app
|
||||
basename "$newfolder"
|
||||
|
||||
#then move the extracted files over, into the app-folder
|
||||
mv -f "$tmpdir"/* "$newfolder"
|
||||
fi
|
||||
}
|
||||
|
||||
if [[ "$GITHUB_JOB" == "bionic-64bit" ]]; then
|
||||
# fix nvidia jank
|
||||
# update sources list for t210
|
||||
sudo sed -i "s/<SOC>/t210/" /etc/apt/sources.list.d/nvidia-l4t-apt-source.list
|
||||
fi
|
||||
|
||||
if [[ "$GITHUB_JOB" == "bionic-64bit" ]] || [[ "$GITHUB_JOB" == "l4t-jammy-64bit" ]]; then
|
||||
# add ld conf files (normally handled by service on first launch)
|
||||
echo "/usr/lib/aarch64-linux-gnu/tegra-egl" | sudo tee /etc/ld.so.conf.d/aarch64-linux-gnu_EGL.conf
|
||||
echo "/usr/lib/aarch64-linux-gnu/tegra" | sudo tee /etc/ld.so.conf.d/aarch64-linux-gnu_GL.conf
|
||||
# skip joycond postinst
|
||||
sudo rm /var/lib/dpkg/info/joycond.postinst -f
|
||||
sudo dpkg --configure joycond
|
||||
# note that we are in a chroot to skip bootfile configuration
|
||||
sudo mkdir -p /opt/switchroot
|
||||
sudo touch /opt/switchroot/image_prep
|
||||
fi
|
||||
|
||||
if [[ "$GITHUB_JOB" == "focal-64bit" ]]; then
|
||||
# fix nvidia jank
|
||||
# update sources list for t194
|
||||
sudo sed -i "s/<SOC>/t194/" /etc/apt/sources.list.d/nvidia-l4t-apt-source.list
|
||||
fi
|
||||
|
||||
if [[ "$GITHUB_JOB" == "jammy-64bit" ]] || [[ "$GITHUB_JOB" == "lunar-64bit" ]]; then
|
||||
# remove packages that won't work in the chroot
|
||||
sudo apt remove -y linux-image-*-raspi linux-modules-*-raspi linux-image-raspi linux-raspi linux-headers-raspi
|
||||
fi
|
||||
|
||||
# install pi-apps dependencies
|
||||
sudo apt update
|
||||
if [[ "$GITHUB_JOB" == "bionic-64bit" ]]; then
|
||||
# update certificate chain
|
||||
sudo apt install -y ca-certificates
|
||||
fi
|
||||
sudo apt install -y yad curl wget aria2 lsb-release software-properties-common apt-utils imagemagick bc librsvg2-bin locales shellcheck git wmctrl xdotool x11-utils rsync
|
||||
|
||||
#determine what type of input we received
|
||||
if [ -z "$name" ]; then
|
||||
error "No App Name, PR #, or zip URL input passed to script. Exiting now."
|
||||
fi
|
||||
import="$(echo "$name" | tr ';' '\n')"
|
||||
|
||||
if ls apps | grep -q "$import" ;then
|
||||
#pi-apps app name as input
|
||||
imported_apps="$import"
|
||||
|
||||
elif [[ "$import" == *'://'*'.zip' ]];then
|
||||
|
||||
#given a download link to a zip file
|
||||
|
||||
#create a temporary directory to extract to
|
||||
tmpdir="$(mktemp -d)" || error "Failed to create a temporaty folder for some reason.\nErrors:\n$tmpdir"
|
||||
#be sure to delete the temporary folder on exit
|
||||
trap "rm -rf '$tmpdir'" EXIT
|
||||
|
||||
filename="$tmpdir/$(basename "$import")"
|
||||
|
||||
#download the zip file
|
||||
wget "$import" -O "$filename" || error "Failed to download '$import' to '$filename'"
|
||||
|
||||
#use the import_zip function to import the app, keeping a record of the app-name
|
||||
imported_apps="$(import_zip "$filename")"
|
||||
|
||||
elif [[ "$import" =~ ^[0-9]+$ ]] || [[ "$import" == *'://'*'/pull/'*[0-9] ]];then
|
||||
#given a pull request for an app
|
||||
|
||||
#if given a PR number, assume it's a PR on the pi-apps repo
|
||||
if [[ "$import" =~ ^[0-9]+$ ]];then
|
||||
PR="https://github.com/Botspot/pi-apps/pull/${import}"
|
||||
else
|
||||
#if given a url to a PR
|
||||
PR="$import"
|
||||
fi
|
||||
|
||||
#repobranch='https://github.com/cycool29/pi-apps/tree/msteams'
|
||||
repobranch="$(wget -qO- "$PR" | grep -x 'from' --after 2 | tr '<> ' '\n' | grep 'title="' | sed 's/title="//g' | sed 's/"$//g' | head -n1)"
|
||||
|
||||
if [ -z "$repobranch" ];then
|
||||
error "No PR was found that mentions a branch."
|
||||
else
|
||||
echo "repobranch: $repobranch"
|
||||
fi
|
||||
|
||||
#Take a combined repo/branch url and separate it.
|
||||
#example value of repobranch: https://github.com/cycool29/pi-apps/tree/msteams
|
||||
|
||||
repo="$(echo "$repobranch" | awk -F: '{print $1}')" #value: cycool29/pi-apps
|
||||
branch="$(basename "$repobranch" | awk -F: '{print $2}')" #value: msteams
|
||||
username="$(dirname "$repo" | sed 's+^/++g')" #value: cycool29
|
||||
|
||||
#make a temporary directory and enter it
|
||||
cd "$(mktemp -d)" || error "Failed to create and enter a temporary directory."
|
||||
#if script is killed prematurely, be sure to delete the temporary folder
|
||||
trap "rm -rf '$(pwd)'" EXIT
|
||||
|
||||
echo -e "\nrepo: $repo\nbranch: $branch\nusername: $username\ntmpdir: $(pwd)\n"
|
||||
|
||||
echo -n "Downloading repository... "
|
||||
errors="$(git clone "https://github.com/${repo}" -b $branch -q pi-apps 2>&1)" || error "Failed to clone repository: $repo\nErrors:\n$errors"
|
||||
echo "Done"
|
||||
|
||||
echo -n "Syncing fork with upstream repo... "
|
||||
cd $(pwd)/pi-apps
|
||||
git config user.email "user@example.com" #set email in this repo so that it can pull
|
||||
git config user.name "user" #set username in this repo so that it can pull
|
||||
errors="$(git pull https://github.com/Botspot/pi-apps --rebase -q 2>&1)" || error "Failed to sync upstream repo. \nErrors:\n$errors"
|
||||
|
||||
cd .. #back to tmpdir
|
||||
echo "Done"
|
||||
|
||||
echo -n "Getting pi-apps repo for comparison... "
|
||||
errors="$(git clone "https://github.com/Botspot/pi-apps" pi-apps-master -q 2>&1)" || error "Failed to clone Botspot pi-apps repository.\nErrors:\n$errors"
|
||||
echo "Done"
|
||||
|
||||
#get list of apps that are unique to this pi-apps folder. (not on main repo)
|
||||
applist="$("$(pwd)/pi-apps/api" list_apps local_only)"
|
||||
|
||||
#get apps that don't match the ones in main branch - find only new apps
|
||||
imported_apps="$(diff -rq "$(pwd)/pi-apps/apps" "$(pwd)/pi-apps-master/apps" | grep "Only in $(pwd)/pi-apps/apps:" | sed 's+.*/pi-apps-master.++g' | sed 's+.*apps/++g' | sed 's+.*apps: ++g' | sed 's+/.*++g' | sort | uniq | grep .)"
|
||||
|
||||
IFS=$'\n'
|
||||
for app in $applist
|
||||
do
|
||||
echo -en "Scanning apps... $app\033[0K\r" 1>&2
|
||||
|
||||
if [ -d "$(pwd)/pi-apps/apps/${app}" ] && [ -d "$(pwd)/pi-apps-master/apps/${app}" ] && ! diff -r "$(pwd)/pi-apps/apps/${app}" "$(pwd)/pi-apps-master/apps/${app}" -q >/dev/null 2>&1; then
|
||||
#if app hashes don't match, add to imported list
|
||||
#find only changed apps
|
||||
if [ -z "$imported_apps" ]; then
|
||||
# imported apps is blank, do not add newline
|
||||
imported_apps="${app}"
|
||||
else
|
||||
# imported apps is not blank, add newline
|
||||
imported_apps="${imported_apps}
|
||||
${app}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
IFS=$'\n'
|
||||
for app in $imported_apps ;do
|
||||
#remove directory first and replace with copied version from PR
|
||||
#this prevents orphaned files when moving from install-32/install-64 to install
|
||||
rm -rf "${DIRECTORY}/apps/$app"
|
||||
cp -af "$(pwd)/pi-apps/apps/$app" "${DIRECTORY}/apps"
|
||||
echo "Copied '$(pwd)/pi-apps/apps/${app}' to ${DIRECTORY}/apps"
|
||||
done
|
||||
|
||||
else
|
||||
#unrecognized input
|
||||
error "Unrecognized input '$import'"
|
||||
fi
|
||||
|
||||
cd "$DIRECTORY"
|
||||
|
||||
status "Testing app(s): $imported_apps"
|
||||
|
||||
# create standard directories
|
||||
mkdir -p $HOME/.local/share/applications $HOME/.local/bin $HOME/Desktop
|
||||
sudo mkdir -p /usr/local/bin /usr/local/share/applications
|
||||
|
||||
# clean out any app status files
|
||||
rm -rf ./data/status
|
||||
|
||||
# runonce-entries is run in the build tester, runonce requires that all api functions be available to subprocess (like is done in the gui script)
|
||||
#for the will_reinstall() and list_intersect() functions
|
||||
set -a #make all functions in the api available to subprocesses
|
||||
source "${DIRECTORY}/api" || error "failed to source ${DIRECTORY}/api"
|
||||
#Run runonce entries
|
||||
"${DIRECTORY}/etc/runonce-entries"
|
||||
set +a #stop exporting functions
|
||||
|
||||
# upgrade cmake to 3.20+ from theofficialgman ppa to fix QEMU only issue https://gitlab.kitware.com/cmake/cmake/-/issues/20568
|
||||
package_is_new_enough cmake 3.20 || debian_ppa_installer "theofficialgman/cmake-bionic" "bionic" "0ACACB5D1E74E484" || exit 1
|
||||
|
||||
IFS=$'\n'
|
||||
for app in $imported_apps ;do
|
||||
cd "$DIRECTORY"
|
||||
./manage install "$app" || error "Failed to install $app on $GITHUB_JOB."
|
||||
status_green "Successfully installed $app on $GITHUB_JOB."
|
||||
done
|
||||
IFS=$'\n'
|
||||
for app in $imported_apps ;do
|
||||
cd "$DIRECTORY"
|
||||
./manage uninstall "$app" || error "Failed to uninstall $app on $GITHUB_JOB."
|
||||
status_green "Successfully uninstalled $app on $GITHUB_JOB."
|
||||
done
|
||||
|
|
@ -0,0 +1,401 @@
|
|||
name: Update_Apps
|
||||
|
||||
# Controls when the workflow will run
|
||||
on:
|
||||
# run at 00:00 UTC every Wednesday
|
||||
schedule:
|
||||
- cron: "0 0 * * 3"
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
# this workflow contains 3 jobs that run sequentially: get-latest-app-versions, test-updated-apps, and create-pr
|
||||
# get-latest-app-versions gets the latests app versions and modifies the working directory of the repository with those changes. then it uploads that working directory of the git repository as an artifact for use in later jobs
|
||||
# test-updated-apps runs a matrix of testcases where all updated apps from the first job are tested for successful installation/uninstallation in the working directory of the git repoistory downloaded from the artifact
|
||||
# create-pr then uses the output from get-latest-app-versions and test-updated-apps to finalize a PR where only apps that passed all testcases are updated and any that fail have a descriptive error written in the PR comment
|
||||
jobs:
|
||||
get-latest-app-versions:
|
||||
name: Get Latest App Versions
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
outputs:
|
||||
UPDATED_APPS: ${{ steps.updated.outputs.UPDATED_APPS }}
|
||||
FAILED_APPS: ${{ steps.failed.outputs.FAILED_APPS }}
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# Runs a set of commands using the runners shell
|
||||
- name: Run app update scripts
|
||||
env:
|
||||
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
|
||||
run: |
|
||||
# print user info
|
||||
echo $USER $USERNAME $(id) $(whoami)
|
||||
|
||||
#source pi-apps functions
|
||||
|
||||
#export all functions and variables
|
||||
set -a
|
||||
#make DIRECTORY equal to GITHUB_WORKSPACE, for subscripts and api functions
|
||||
DIRECTORY=$GITHUB_WORKSPACE
|
||||
source $GITHUB_WORKSPACE/api
|
||||
|
||||
#add special functions
|
||||
get_release() {
|
||||
curl -s --header "Authorization: token $GH_PERSONAL_ACCESS_TOKEN" "https://api.github.com/repos/$1/releases/latest" | jq -r '.tag_name' | sed s/^v//g
|
||||
}
|
||||
|
||||
get_release_raw() {
|
||||
curl -s --header "Authorization: token $GH_PERSONAL_ACCESS_TOKEN" "https://api.github.com/repos/$1/releases/latest" | jq -r '.tag_name'
|
||||
}
|
||||
|
||||
get_prerelease() {
|
||||
curl -s --header "Authorization: token $GH_PERSONAL_ACCESS_TOKEN" "https://api.github.com/repos/$1/releases" | jq -r 'map(select(.prerelease)) | first | .tag_name' | sed s/^v//g
|
||||
}
|
||||
|
||||
get_prerelease_raw() {
|
||||
curl -s --header "Authorization: token $GH_PERSONAL_ACCESS_TOKEN" "https://api.github.com/repos/$1/releases" | jq -r 'map(select(.prerelease)) | first | .tag_name'
|
||||
}
|
||||
|
||||
function validate_url(){
|
||||
if command wget --timeout=5 -q --spider "$1"; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
#stop exporting functions
|
||||
set +a
|
||||
|
||||
#make sure all update scripts are executable
|
||||
chmod +x $GITHUB_WORKSPACE/.github/workflows/updates/*.sh
|
||||
cd $GITHUB_WORKSPACE
|
||||
apps=( .github/workflows/updates/*.sh )
|
||||
for app_directory in "${apps[@]}"; do
|
||||
echo
|
||||
#make sure we are still in the main workspace (incase an update script left off elsewhere)
|
||||
cd $GITHUB_WORKSPACE
|
||||
export app_name="$(echo ${app_directory%.*} | sed 's:.*/::')"
|
||||
echo "$app_name"
|
||||
status "Checking $app_name for updates"
|
||||
# move to app folder
|
||||
cd "$GITHUB_WORKSPACE/apps/$app_name"
|
||||
# run app update script
|
||||
"$GITHUB_WORKSPACE/$app_directory"
|
||||
done
|
||||
cd
|
||||
|
||||
- name: Output updated apps
|
||||
id: updated
|
||||
run: |
|
||||
if test -f /tmp/updated_apps; then
|
||||
sort -u /tmp/updated_apps > /tmp/updated_apps_sorted
|
||||
echo "UPDATED_APPS<<EOF" >> $GITHUB_OUTPUT
|
||||
cat /tmp/updated_apps_sorted >> $GITHUB_OUTPUT
|
||||
echo "EOF" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
- name: Output failed apps
|
||||
id: failed
|
||||
run: |
|
||||
if test -f /tmp/failed_apps; then
|
||||
echo "FAILED_APPS<<EOF" >> $GITHUB_OUTPUT
|
||||
cat /tmp/failed_apps | sed '0~1 a\\' >> $GITHUB_OUTPUT
|
||||
echo "EOF" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
- name: Tar GITHUB_WORKSPACE
|
||||
run: |
|
||||
cd ${{ runner.temp }}
|
||||
tar -C $GITHUB_WORKSPACE -cvf GITHUB_WORKSPACE.tar .
|
||||
|
||||
- name: Upload GITHUB_WORKSPACE Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: GITHUB_WORKSPACE
|
||||
path: ${{ runner.temp }}/GITHUB_WORKSPACE.tar
|
||||
|
||||
test-updated-apps:
|
||||
runs-on: ubuntu-latest
|
||||
needs: get-latest-app-versions
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- os: buster
|
||||
arch: armhf
|
||||
image: https://downloads.raspberrypi.org/raspios_oldstable_armhf/images/raspios_oldstable_armhf-2023-05-03/2023-05-03-raspios-buster-armhf.img.xz
|
||||
cache: yes
|
||||
- os: buster
|
||||
arch: arm64
|
||||
image: https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2021-05-28/2021-05-07-raspios-buster-arm64.zip
|
||||
cache: yes
|
||||
- os: bullseye
|
||||
arch: armhf
|
||||
image: https://downloads.raspberrypi.org/raspios_armhf/images/raspios_armhf-2023-05-03/2023-05-03-raspios-bullseye-armhf.img.xz
|
||||
cache: yes
|
||||
- os: bullseye
|
||||
arch: arm64
|
||||
image: https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2023-05-03/2023-05-03-raspios-bullseye-arm64.img.xz
|
||||
cache: yes
|
||||
- os: bookworm
|
||||
arch: arm64
|
||||
image: RPIOS_BOOKWORM_URL
|
||||
cache: no
|
||||
name: Testing on ${{ matrix.os }} - ${{ matrix.arch }}
|
||||
outputs:
|
||||
FAILED_UPDATE_APPS_buster_armhf: ${{ steps.failed.outputs.FAILED_UPDATE_APPS_buster_armhf || '' }}
|
||||
FAILED_UPDATE_APPS_buster_arm64: ${{ steps.failed.outputs.FAILED_UPDATE_APPS_buster_arm64 || '' }}
|
||||
FAILED_UPDATE_APPS_bullseye_armhf: ${{ steps.failed.outputs.FAILED_UPDATE_APPS_bullseye_armhf || '' }}
|
||||
FAILED_UPDATE_APPS_bullseye_arm64: ${{ steps.failed.outputs.FAILED_UPDATE_APPS_bullseye_arm64 || '' }}
|
||||
FAILED_UPDATE_APPS_bookworm_arm64: ${{ steps.failed.outputs.FAILED_UPDATE_APPS_bookworm_arm64 || '' }}
|
||||
UPDATED_APPS_buster_armhf: ${{ steps.updated.outputs.UPDATED_APPS_buster_armhf || '' }}
|
||||
UPDATED_APPS_buster_arm64: ${{ steps.updated.outputs.UPDATED_APPS_buster_arm64 || '' }}
|
||||
UPDATED_APPS_bullseye_armhf: ${{ steps.updated.outputs.UPDATED_APPS_bullseye_armhf || '' }}
|
||||
UPDATED_APPS_bullseye_arm64: ${{ steps.updated.outputs.UPDATED_APPS_bullseye_arm64 || '' }}
|
||||
UPDATED_APPS_bookworm_arm64: ${{ steps.updated.outputs.UPDATED_APPS_bookworm_arm64 || '' }}
|
||||
steps:
|
||||
# restore GITHUB_WORKSPACE
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: GITHUB_WORKSPACE
|
||||
path: ${{ runner.temp }}
|
||||
- name: Extract GITHUB_WORKSPACE
|
||||
run: |
|
||||
cd ${{ runner.temp }}
|
||||
tar xf GITHUB_WORKSPACE.tar -C $GITHUB_WORKSPACE
|
||||
cd $GITHUB_WORKSPACE
|
||||
|
||||
- name: Replace secret reference with contents
|
||||
if: ${{ matrix.image == 'RPIOS_BOOKWORM_URL' }}
|
||||
run: |
|
||||
image_url=${{ secrets[matrix.image] }}
|
||||
echo "::add-mask::$image_url"
|
||||
echo "image_url=$image_url" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Replace non-secret reference with contents
|
||||
if: ${{ matrix.image != 'RPIOS_BOOKWORM_URL' }}
|
||||
run: |
|
||||
image_url=${{ matrix.image }}
|
||||
echo "image_url=$image_url" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Write UPDATED_APPS and FAILED_APPS from OUTPUT of get-latest-app-versions to ENV
|
||||
run: |
|
||||
echo "UPDATED_APPS<<EOF" >> $GITHUB_ENV
|
||||
echo "${{needs.get-latest-app-versions.outputs.UPDATED_APPS}}" >> $GITHUB_ENV
|
||||
echo "EOF" >> $GITHUB_ENV
|
||||
|
||||
echo "FAILED_APPS<<EOF" >> $GITHUB_ENV
|
||||
echo "${{needs.get-latest-app-versions.outputs.FAILED_APPS}}" >> $GITHUB_ENV
|
||||
echo "EOF" >> $GITHUB_ENV
|
||||
|
||||
- name: Test installing updated apps on ${{ matrix.os }} - ${{ matrix.arch }}
|
||||
uses: theofficialgman/arm-runner-action@v12
|
||||
with:
|
||||
base_image: ${{ env.image_url }}
|
||||
# bind mount the directory so any changes propogate to outside the chroot
|
||||
bind_mount_repository: yes
|
||||
|
||||
# give the image more space
|
||||
image_additional_mb: 5000
|
||||
|
||||
# disable image caching to not leak the URL on some systems
|
||||
enable_image_caching: ${{ matrix.cache }}
|
||||
|
||||
# set CPUs to use
|
||||
cpu: cortex-a7:cortex-a72
|
||||
|
||||
# use custom /proc/cpuinfo
|
||||
cpu_info: cpuinfo/raspberrypi_4b
|
||||
|
||||
# user runner name as default path
|
||||
copy_repository_path: /home/runner/pi-apps
|
||||
|
||||
# export github env back to outside the chroot
|
||||
export_github_env: yes
|
||||
|
||||
import_github_env: true
|
||||
|
||||
# set shell to bash
|
||||
shell: /bin/bash
|
||||
commands: |
|
||||
sudo chown runner:docker /home/runner
|
||||
# print user info
|
||||
echo $USER $USERNAME $(id) $(whoami)
|
||||
sudo bash -c 'echo $USER $USERNAME $(id) $(whoami)'
|
||||
|
||||
# create standard directories
|
||||
mkdir -p $HOME/.local/share/applications $HOME/.local/bin
|
||||
sudo mkdir -p /usr/local/bin /usr/local/share/applications
|
||||
|
||||
# install pi-apps dependencies
|
||||
sudo apt update
|
||||
sudo apt install -y yad curl wget aria2 lsb-release software-properties-common apt-utils imagemagick bc librsvg2-bin locales shellcheck git wmctrl xdotool x11-utils rsync
|
||||
|
||||
# runonce-entries is run in the build tester, runonce requires that all api functions be available to subprocess (like is done in the gui script)
|
||||
#for the will_reinstall() and list_intersect() functions
|
||||
set -a #make all functions in the api available to subprocesses
|
||||
#make DIRECTORY equal to GITHUB_WORKSPACE, for subscripts and api functions
|
||||
DIRECTORY=$(pwd)
|
||||
source "${DIRECTORY}/api" || error "failed to source ${DIRECTORY}/api"
|
||||
#Run runonce entries
|
||||
"${DIRECTORY}/etc/runonce-entries"
|
||||
set +a #stop exporting functions
|
||||
cd ${DIRECTORY}
|
||||
|
||||
# upgrade cmake to 3.20+ from theofficialgman ppa to fix QEMU only issue https://gitlab.kitware.com/cmake/cmake/-/issues/20568
|
||||
package_is_new_enough cmake 3.20 || debian_ppa_installer "theofficialgman/cmake-bionic" "bionic" "0ACACB5D1E74E484" || exit 1
|
||||
|
||||
# store apps changed from last commit to working directory in variable
|
||||
mapfile -t changed_apps < <(git diff --name-only | grep ^apps/ | awk -F '/' '{print $2}' | sort -u)
|
||||
|
||||
# clean out any app status files
|
||||
rm -rf ./data/status
|
||||
|
||||
# attempt to install updated apps using manage script loop
|
||||
# if any app fails, add it to the FAILED_INSTALL_APPS or FAILED_UNINSTALL_APPS variable
|
||||
if [[ ${{ matrix.arch }} == armhf ]]; then
|
||||
# skip checking DDNet (due to Rust) if on arm32 under QEMU: https://github.com/rust-lang/cargo/issues/8719
|
||||
# skip checking Microsoft PowerShell due to QEMU instability with .NET: https://github.com/Botspot/pi-apps/pull/2252#issuecomment-1403043945
|
||||
# skip WPS Office on 32bit as it requires "64bit" kernel to be detected. QEMU reports an armv7 kernel. WPS Office is still tested on arm64 (which will verify if the deb works and installs correctly)
|
||||
skiplist="DDNet
|
||||
Microsoft PowerShell
|
||||
WPS Office"
|
||||
else
|
||||
# skip checking Microsoft PowerShell due to QEMU instability with .NET: https://github.com/Botspot/pi-apps/pull/2252#issuecomment-1403043945
|
||||
skiplist="Microsoft PowerShell"
|
||||
fi
|
||||
for app in "${changed_apps[@]}"; do
|
||||
# only attempt install/uninstall if updated app is supported on this architecture
|
||||
scriptname="$(script_name_cpu "$app")" #will be install, install-32, install-64, or package
|
||||
if [ -z "$scriptname" ];then
|
||||
continue
|
||||
fi
|
||||
# skip app if is in the skiplist
|
||||
if echo "$skiplist" | grep -Fxq "$app"; then
|
||||
continue
|
||||
fi
|
||||
./manage install "$app" || { FAILED_INSTALL_APPS+="$app"$'\n'; UPDATED_APPS=$(echo "$UPDATED_APPS" | sed "/$app/d"); }
|
||||
./manage uninstall "$app" || { FAILED_UNINSTALL_APPS+="$app"$'\n'; UPDATED_APPS=$(echo "$UPDATED_APPS" | sed "/$app/d"); }
|
||||
done
|
||||
|
||||
if [ ! -z "$FAILED_INSTALL_APPS" ] || [ ! -z "$FAILED_UNINSTALL_APPS" ]; then
|
||||
echo "FAILED_UPDATE_APPS<<EOF" >> $GITHUB_ENV
|
||||
echo "$FAILED_INSTALL_APPS$FAILED_UNINSTALL_APPS" >> $GITHUB_ENV
|
||||
echo "EOF" >> $GITHUB_ENV
|
||||
echo "UPDATED_APPS<<EOF" >> $GITHUB_ENV
|
||||
echo "$UPDATED_APPS" >> $GITHUB_ENV
|
||||
echo "EOF" >> $GITHUB_ENV
|
||||
fi
|
||||
- name: Write FAILED_APPS to OUTPUT
|
||||
id: failed
|
||||
run: |
|
||||
echo "FAILED_UPDATE_APPS_${{ matrix.os }}_${{ matrix.arch }}<<EOF" >> $GITHUB_OUTPUT
|
||||
echo "${{env.FAILED_UPDATE_APPS}}" >> $GITHUB_OUTPUT
|
||||
echo "EOF" >> $GITHUB_OUTPUT
|
||||
- name: Write UPDATED_APPS to OUTPUT
|
||||
id: updated
|
||||
run: |
|
||||
echo "UPDATED_APPS_${{ matrix.os }}_${{ matrix.arch }}<<EOF" >> $GITHUB_OUTPUT
|
||||
echo "${{env.UPDATED_APPS}}" >> $GITHUB_OUTPUT
|
||||
echo "EOF" >> $GITHUB_OUTPUT
|
||||
|
||||
create-pr:
|
||||
needs: [get-latest-app-versions,test-updated-apps]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# restore GITHUB_WORKSPACE
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: GITHUB_WORKSPACE
|
||||
path: ${{ runner.temp }}
|
||||
- name: Extract GITHUB_WORKSPACE
|
||||
run: |
|
||||
cd ${{ runner.temp }}
|
||||
tar xf GITHUB_WORKSPACE.tar -C $GITHUB_WORKSPACE
|
||||
cd $GITHUB_WORKSPACE
|
||||
- name: Delete artifact
|
||||
uses: geekyeggo/delete-artifact@v2
|
||||
with:
|
||||
name: GITHUB_WORKSPACE
|
||||
failOnError: false
|
||||
|
||||
- name: Revert failed apps and generate list
|
||||
run: |
|
||||
ALL_FAILED_APPS="${{needs.test-updated-apps.outputs.FAILED_UPDATE_APPS_buster_armhf}}"$'\n'"${{needs.test-updated-apps.outputs.FAILED_UPDATE_APPS_buster_arm64}}"$'\n'"${{needs.test-updated-apps.outputs.FAILED_UPDATE_APPS_bullseye_armhf}}"$'\n'"${{needs.test-updated-apps.outputs.FAILED_UPDATE_APPS_bullseye_arm64}}"$'\n'"${{needs.test-updated-apps.outputs.FAILED_UPDATE_APPS_bookworm_arm64}}"
|
||||
ALL_FAILED_APPS="$(echo "$ALL_FAILED_APPS" | sort -u | awk NF)"
|
||||
echo "ALL_FAILED_APPS<<EOF" >> $GITHUB_ENV
|
||||
echo "$ALL_FAILED_APPS" >> $GITHUB_ENV
|
||||
echo "EOF" >> $GITHUB_ENV
|
||||
error_string=""
|
||||
IFS=$'\n'
|
||||
for app in $ALL_FAILED_APPS; do
|
||||
git checkout -- "apps/$app"
|
||||
error_string+='![badge-error][badge-error]'" Failed to install $app on "
|
||||
|
||||
if echo "${{needs.test-updated-apps.outputs.FAILED_UPDATE_APPS_buster_armhf}}" | grep -Fxq "$app"; then
|
||||
error_string+="buster armhf, "
|
||||
fi
|
||||
if echo "${{needs.test-updated-apps.outputs.FAILED_UPDATE_APPS_buster_arm64}}" | grep -Fxq "$app"; then
|
||||
error_string+="buster arm64, "
|
||||
fi
|
||||
if echo "${{needs.test-updated-apps.outputs.FAILED_UPDATE_APPS_bullseye_armhf}}" | grep -Fxq "$app"; then
|
||||
error_string+="bullseye armhf, "
|
||||
fi
|
||||
if echo "${{needs.test-updated-apps.outputs.FAILED_UPDATE_APPS_bullseye_arm64}}" | grep -Fxq "$app"; then
|
||||
error_string+="bullseye arm64, "
|
||||
fi
|
||||
if echo "${{needs.test-updated-apps.outputs.FAILED_UPDATE_APPS_bookworm_arm64}}" | grep -Fxq "$app"; then
|
||||
error_string+="bookworm arm64, "
|
||||
fi
|
||||
|
||||
error_string+="reverting to previous version."$'\n'$'\n'
|
||||
done
|
||||
true
|
||||
echo "ALL_FAILED_APPS_ERROR_STRING<<EOF" >> $GITHUB_ENV
|
||||
echo "$error_string" >> $GITHUB_ENV
|
||||
echo "EOF" >> $GITHUB_ENV
|
||||
|
||||
- name: Generate updated apps list
|
||||
run: |
|
||||
list_subtract() { #Outputs a list of apps from stdin, minus the ones that appear in $1 using the UPDATED_APP format
|
||||
# for example, the following two inputs will be a match
|
||||
# - BlockBench-arm64: 4.7.4 -> 4.8.0
|
||||
# BlockBench
|
||||
# change \n to -\n | change '^' to '- '
|
||||
grep -ve "$(echo "$1" | sed -z 's/\n/\-\n/g' | sed 's/^/- /g')"
|
||||
true
|
||||
}
|
||||
ALL_UPDATED_APPS="${{needs.test-updated-apps.outputs.UPDATED_APPS_buster_armhf}}"$'\n'"${{needs.test-updated-apps.outputs.UPDATED_APPS_buster_arm64}}"$'\n'"${{needs.test-updated-apps.outputs.UPDATED_APPS_bullseye_armhf}}"$'\n'"${{needs.test-updated-apps.outputs.UPDATED_APPS_bullseye_arm64}}"$'\n'"${{needs.test-updated-apps.outputs.UPDATED_APPS_bookworm_arm64}}"
|
||||
ALL_UPDATED_APPS="$(echo "$ALL_UPDATED_APPS" | sort -u | awk NF)"
|
||||
[ ! -z "$ALL_UPDATED_APPS" ] && ALL_UPDATED_APPS="$(echo "$ALL_UPDATED_APPS" | list_subtract "$ALL_FAILED_APPS")"
|
||||
echo "ALL_UPDATED_APPS<<EOF" >> $GITHUB_ENV
|
||||
echo "$ALL_UPDATED_APPS" >> $GITHUB_ENV
|
||||
echo "EOF" >> $GITHUB_ENV
|
||||
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
with:
|
||||
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
||||
commit-message: |
|
||||
Update App Versions, run by GitHub Actions - Apps updated:
|
||||
|
||||
${{ env.ALL_UPDATED_APPS }}
|
||||
branch: "auto-app-updates-NOT-FOR-USERS"
|
||||
title: "[AUTO] Update App Versions"
|
||||
body: |
|
||||
[badge-error]: https://github.com/Pi-Apps-Coders/GitHub-Markdown/blob/main/blockquotes/badge/dark-theme/error.svg?raw=true 'Error'
|
||||
[badge-warning]: https://github.com/Pi-Apps-Coders/GitHub-Markdown/blob/main/blockquotes/badge/dark-theme/warning.svg?raw=true 'Warning'
|
||||
[badge-issue]: https://github.com/Pi-Apps-Coders/GitHub-Markdown/blob/main/blockquotes/badge/dark-theme/issue.svg?raw=true 'Issue'
|
||||
[badge-check]: https://github.com/Pi-Apps-Coders/GitHub-Markdown/blob/main/blockquotes/badge/dark-theme/check.svg?raw=true 'Check'
|
||||
[badge-info]: https://github.com/Pi-Apps-Coders/GitHub-Markdown/blob/main/blockquotes/badge/dark-theme/info.svg?raw=true 'Info'
|
||||
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action.
|
||||
Workflow run: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||
Apps updated:
|
||||
```
|
||||
${{ env.ALL_UPDATED_APPS }}
|
||||
```
|
||||
${{needs.get-latest-app-versions.outputs.FAILED_APPS}}
|
||||
${{ env.ALL_FAILED_APPS_ERROR_STRING }}
|
||||
|
|
@ -0,0 +1,94 @@
|
|||
name: Update_Raspbian_Addons_apps
|
||||
|
||||
# Controls when the workflow will run
|
||||
on:
|
||||
# run every hour
|
||||
schedule:
|
||||
- cron: 5 * * * *
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
update-raspbian-addons:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# Runs a set of commands using the runners shell
|
||||
- name: Run app update scripts
|
||||
run: |
|
||||
#source pi-apps functions
|
||||
|
||||
#export all functions and variables
|
||||
set -a
|
||||
#make DIRECTORY equal to GITHUB_WORKSPACE, for subscripts and api functions
|
||||
DIRECTORY=$GITHUB_WORKSPACE
|
||||
source $GITHUB_WORKSPACE/api
|
||||
|
||||
#add special functions
|
||||
get_release() {
|
||||
curl -s --header "Authorization: token ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}" "https://api.github.com/repos/$1/releases/latest" | jq -r '.tag_name' | sed s/v//g
|
||||
}
|
||||
|
||||
get_prerelease() {
|
||||
curl -s --header "Authorization: token ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}" "https://api.github.com/repos/$1/releases" | jq -r 'map(select(.prerelease)) | first | .tag_name' | sed s/v//g
|
||||
}
|
||||
|
||||
function validate_url(){
|
||||
if command wget --timeout=5 --user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36" -q --spider "$1"; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
#stop exporting functions
|
||||
set +a
|
||||
|
||||
#make sure all update scripts are executable
|
||||
chmod +x $GITHUB_WORKSPACE/.github/workflows/updates/*.sh
|
||||
cd $GITHUB_WORKSPACE
|
||||
apps=( .github/workflows/updates/*.sh )
|
||||
for app_directory in "${apps[@]}"; do
|
||||
# make sure we are still in the main workspace (incase an update script left off elsewhere)
|
||||
cd $GITHUB_WORKSPACE
|
||||
# check if this is a raspbian addons application by checking for string https://apt.raspbian-addons.org
|
||||
if grep -q "https://apt.raspbian-addons.org" "$app_directory"; then
|
||||
export app_name="$(echo ${app_directory%.*} | sed 's:.*/::')"
|
||||
echo "$app_name"
|
||||
status "Checking $app_name for updates from apt.raspbian-addons.org"
|
||||
# move to app folder
|
||||
cd "$GITHUB_WORKSPACE/apps/$app_name"
|
||||
|
||||
# run app update script
|
||||
"$GITHUB_WORKSPACE/$app_directory"
|
||||
fi
|
||||
done
|
||||
cd
|
||||
if test -f /tmp/updated_apps; then
|
||||
sort -u /tmp/updated_apps > /tmp/updated_apps_sorted
|
||||
echo "UPDATED_APPS<<EOF" >> $GITHUB_ENV
|
||||
cat /tmp/updated_apps_sorted >> $GITHUB_ENV
|
||||
echo "EOF" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
if test -f /tmp/failed_apps; then
|
||||
echo "FAILED_APPS<<EOF" >> $GITHUB_ENV
|
||||
cat /tmp/failed_apps | sed '0~1 a\\' >> $GITHUB_ENV
|
||||
echo "EOF" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: Push any changes to repo
|
||||
uses: EndBug/add-and-commit@v9
|
||||
with:
|
||||
default_author: github_actions
|
||||
message: |
|
||||
Update App Versions, run by GitHub Actions - Apps updated:
|
||||
|
||||
${{ env.UPDATED_APPS }}
|
||||
|
||||
|
|
@ -0,0 +1,157 @@
|
|||
#!/bin/bash
|
||||
|
||||
# to run this script as part of other update scripts, source the directory like below
|
||||
# source $GITHUB_WORKSPACE/.github/workflows/update_debian_repo_script.sh
|
||||
|
||||
# you must have already set corresponding values for armhf_webPackages, arm64_webPackages, or all_webPackages
|
||||
# The corresponding appname in pi-apps will have its corresponding filepath= variable update
|
||||
# the filepath variable will contain the full filepath of the debian package with the version included
|
||||
|
||||
# make sure required variable(s) is(are) supplied by the sourcing script
|
||||
if [ -n "$armhf_webPackages" ] || [ -n "$arm64_webPackages" ] || [ -n "$all_webPackages" ]; then
|
||||
#iterate through all variables supplied if an array
|
||||
# get longest arrary of passed variables
|
||||
num=$(echo -e "${#armhf_webPackages[@]}\n${#arm64_webPackages[@]}\n${#all_webPackages[@]}" | sort -n -r | head -1)
|
||||
|
||||
for (( iter=0; iter<$num; iter++ )); do
|
||||
#make array appear as one variable inside for loop
|
||||
armhf_webPackages=${armhf_webPackages[$iter]}
|
||||
arm64_webPackages=${arm64_webPackages[$iter]}
|
||||
all_webPackages=${all_webPackages[$iter]}
|
||||
armhf_packagename=${armhf_packagename[$iter]}
|
||||
arm64_packagename=${arm64_packagename[$iter]}
|
||||
all_packagename=${all_packagename[$iter]}
|
||||
if [[ $iter == "0" ]]; then
|
||||
version_number=""
|
||||
else
|
||||
version_number=$((iter + 1))
|
||||
fi
|
||||
|
||||
#set pi_apps_filepath variables
|
||||
if [ -n "$armhf_webPackages" ] && [ -f install-32 ]; then
|
||||
pi_apps_filepath_32="$(cat 'install-32' | grep -m 1 "filepath${version_number}=" | sed "s/filepath${version_number}=//" | xargs)"
|
||||
fi
|
||||
|
||||
if [ -n "$arm64_webPackages" ] && [ -f install-64 ]; then
|
||||
pi_apps_filepath_64="$(cat 'install-64' | grep -m 1 "filepath${version_number}=" | sed "s/filepath${version_number}=//" | xargs)"
|
||||
fi
|
||||
|
||||
if [ -n "$all_webPackages" ] && [ -f install ]; then
|
||||
pi_apps_filepath="$(cat 'install' | grep -m 1 "filepath${version_number}=" | sed "s/filepath${version_number}=//" | xargs)"
|
||||
fi
|
||||
|
||||
# check for armhf and arm64 URL with a single install script using the same version
|
||||
if [ -z "$pi_apps_filepath_32" ] && [ -z "$pi_apps_filepath_64" ] && [ -n "$armhf_webPackages" ] && [ -n "$arm64_webPackages" ] && [ -f install ]; then
|
||||
pi_apps_filepath_32="$(cat 'install' | grep -m 1 "filepath_32${version_number}=" | sed "s/filepath_32${version_number}=//" | xargs)"
|
||||
pi_apps_filepath_64="$(cat 'install' | grep -m 1 "filepath_64${version_number}=" | sed "s/filepath_64${version_number}=//" | xargs)"
|
||||
fi
|
||||
|
||||
# install-32 exists
|
||||
if [ -n "$pi_apps_filepath_32" ] && [ -a "$DIRECTORY/apps/$app_name/install-32" ]; then
|
||||
status "The current version in Pi-Apps install-32 is: $pi_apps_filepath_32"
|
||||
armhf_webVer="$(wget -qO- "$armhf_webPackages" | awk "/Package: $armhf_packagename\n/" RS= | grep "Version:" | awk '{print $2}' | sort -V | tail -n1)"
|
||||
armhf_package_path="$(wget -qO- "$armhf_webPackages" | awk "/Package: $armhf_packagename\n/" RS= | sed -n -e "/Version: ${armhf_webVer}/,/Filename:/ p" | grep "Filename:" | awk '{print $2}')"
|
||||
repo_url="$(echo "$armhf_webPackages" | sed 's/dists.*//')"
|
||||
if [[ "$pi_apps_filepath_32" = "${repo_url}${armhf_package_path}" ]]; then
|
||||
#If the version is current do:
|
||||
status "Pi-Apps install-32 version for $app_name is current!"
|
||||
else
|
||||
#If version is not current do:
|
||||
if validate_url "${repo_url}${armhf_package_path}"; then
|
||||
status_green "Updating pi-apps $app_name install-32 to: ${repo_url}${armhf_package_path}"
|
||||
sed -i "0,/filepath${version_number}=.*/s;;filepath${version_number}=\"${repo_url}${armhf_package_path}\";g" install-32
|
||||
echo "- $app_name-armhf: $pi_apps_filepath_32 -> ${repo_url}${armhf_package_path} " >> /tmp/updated_apps
|
||||
else
|
||||
warning "Updating $app_name install-32 had been skipped, the upstream file ${repo_url}${armhf_package_path} does NOT exist."
|
||||
echo "**Updating $app_name install-32 had been skipped, the upstream file ${repo_url}${armhf_package_path} does NOT exist.**" >> /tmp/failed_apps
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# install-64 exists
|
||||
if [ -n "$pi_apps_filepath_64" ] && [ -a "$DIRECTORY/apps/$app_name/install-64" ]; then
|
||||
status "The current version in Pi-Apps install-64 is: $pi_apps_filepath_64"
|
||||
arm64_webVer="$(wget -qO- "$arm64_webPackages" | awk "/Package: $arm64_packagename\n/" RS= | grep "Version:" | awk '{print $2}' | sort -V | tail -n1)"
|
||||
arm64_package_path="$(wget -qO- "$arm64_webPackages" | awk "/Package: $arm64_packagename\n/" RS= | sed -n -e "/Version: ${arm64_webVer}/,/Filename:/ p" | grep "Filename:" | awk '{print $2}')"
|
||||
repo_url="$(echo "$arm64_webPackages" | sed 's/dists.*//')"
|
||||
if [[ "$pi_apps_filepath_64" = "${repo_url}${arm64_package_path}" ]]; then
|
||||
#If the version is current do:
|
||||
status "Pi-Apps install-64 version for $app_name is current!"
|
||||
else
|
||||
#If version is not current do:
|
||||
if validate_url "${repo_url}${arm64_package_path}"; then
|
||||
status_green "Updating pi-apps $app_name install-64 to: ${repo_url}${arm64_package_path}"
|
||||
sed -i "0,/filepath${version_number}=.*/s;;filepath${version_number}=\"${repo_url}${arm64_package_path}\";g" install-64
|
||||
echo "- $app_name-arm64: $pi_apps_filepath_64 -> ${repo_url}${arm64_package_path} " >> /tmp/updated_apps
|
||||
else
|
||||
warning "Updating $app_name install-64 had been skipped, the upstream file ${repo_url}${arm64_package_path} does NOT exist."
|
||||
echo "**Updating $app_name install-64 had been skipped, the upstream file ${repo_url}${arm64_package_path} does NOT exist.**" >> /tmp/failed_apps
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# install exists and all_webPackages is used
|
||||
if [ -n "$pi_apps_filepath" ] && [ -n "$all_webPackages" ] && [ -a "$DIRECTORY/apps/$app_name/install" ]; then
|
||||
status "The current version in Pi-Apps install is: $pi_apps_filepath"
|
||||
all_webVer="$(wget -qO- "$all_webPackages" | awk "/Package: $all_packagename\n/" RS= | grep "Version:" | awk '{print $2}' | sort -V | tail -n1)"
|
||||
all_package_path="$(wget -qO- "$all_webPackages" | awk "/Package: $all_packagename\n/" RS= | sed -n -e "/Version: ${all_webVer}/,/Filename:/ p" | grep "Filename:" | awk '{print $2}')"
|
||||
repo_url="$(echo "$all_webPackages" | sed 's/dists.*//')"
|
||||
if [[ "$pi_apps_filepath" = "${repo_url}${all_package_path}" ]]; then
|
||||
#If the version is current do:
|
||||
status "Pi-Apps install version for $app_name is current!"
|
||||
else
|
||||
#If version is not current do:
|
||||
if validate_url "${repo_url}${all_package_path}"; then
|
||||
status_green "Updating pi-apps $app_name install to: ${repo_url}${all_package_path}"
|
||||
sed -i "0,/filepath${version_number}=.*/s;;filepath${version_number}=\"${repo_url}${all_package_path}\";g" install
|
||||
echo "- $app_name-all: $pi_apps_filepath -> ${repo_url}${all_package_path} " >> /tmp/updated_apps
|
||||
else
|
||||
warning "Updating $app_name install had been skipped, the upstream file ${repo_url}${all_package_path} does NOT exist."
|
||||
echo "**Updating $app_name install had been skipped, the upstream file ${repo_url}${all_package_path} does NOT exist.**" >> /tmp/failed_apps
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# install exists and individual armhf_webPackages and arm64_webPackages are supplied
|
||||
if [ -n "$pi_apps_filepath_32" ] && [ -n "$pi_apps_filepath_64" ] && [ -n "$armhf_webPackages" ] && [ -n "$arm64_webPackages" ] && [ -a "$DIRECTORY/apps/$app_name/install" ]; then
|
||||
status "The current version in Pi-Apps install is: $pi_apps_filepath_32 $pi_apps_filepath_64"
|
||||
armhf_webVer="$(wget -qO- "$armhf_webPackages" | awk "/Package: $armhf_packagename\n/" RS= | grep "Version:" | awk '{print $2}' | sort -V | tail -n1)"
|
||||
armhf_package_path="$(wget -qO- "$armhf_webPackages" | awk "/Package: $armhf_packagename\n/" RS= | sed -n -e "/Version: ${armhf_webVer}/,/Filename:/ p" | grep "Filename:" | awk '{print $2}')"
|
||||
arm64_webVer="$(wget -qO- "$arm64_webPackages" | awk "/Package: $arm64_packagename\n/" RS= | grep "Version:" | awk '{print $2}' | sort -V | tail -n1)"
|
||||
arm64_package_path="$(wget -qO- "$arm64_webPackages" | awk "/Package: $arm64_packagename\n/" RS= | sed -n -e "/Version: ${arm64_webVer}/,/Filename:/ p" | grep "Filename:" | awk '{print $2}')"
|
||||
repo_url_armhf="$(echo "$armhf_webPackages" | sed 's/dists.*//')"
|
||||
repo_url_arm64="$(echo "$arm64_webPackages" | sed 's/dists.*//')"
|
||||
if [[ "$pi_apps_filepath_64" = "${repo_url_arm64}${arm64_package_path}" ]] && [[ "$pi_apps_filepath_32" = "${repo_url_armhf}${armhf_package_path}" ]]; then
|
||||
#If the version is current do:
|
||||
status "Pi-Apps install version for $app_name is current!"
|
||||
else
|
||||
if validate_url "${repo_url_armhf}${armhf_package_path}" && validate_url "${repo_url_arm64}${arm64_package_path}"; then
|
||||
status_green "Updating pi-apps $app_name install to: ${repo_url_armhf}${armhf_package_path} ${repo_url_arm64}${arm64_package_path}"
|
||||
sed -i "0,/filepath_32${version_number}=.*/s;;filepath_32${version_number}=\"${repo_url_armhf}${armhf_package_path}\";g" install
|
||||
sed -i "0,/filepath_64${version_number}=.*/s;;filepath_64${version_number}=\"${repo_url_arm64}${arm64_package_path}\";g" install
|
||||
echo "- $app_name-all: $pi_apps_filepath_32 -> ${repo_url_armhf}${armhf_package_path} " >> /tmp/updated_apps
|
||||
echo "- $app_name-all: $pi_apps_filepath_64 -> ${repo_url_arm64}${arm64_package_path} " >> /tmp/updated_apps
|
||||
else
|
||||
warning "Updating $app_name install had been skipped, the upstream file ${repo_url_armhf}${armhf_package_path} or ${repo_url_arm64}${arm64_package_path} does NOT exist."
|
||||
echo "**Updating $app_name install had been skipped, the upstream file ${repo_url_armhf}${armhf_package_path} or ${repo_url_arm64}${arm64_package_path} does NOT exist.**" >> /tmp/failed_apps
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
done
|
||||
else
|
||||
|
||||
warning "armhf_webPackages, arm64_webPackages, or all_webPackages variable is missing for $app_name update script, please fix this script, skipping update check."
|
||||
echo "**armhf_webPackages, arm64_webPackages, or all_webPackages variable is missing for $app_name update script, please fix this script, skipping update check.**" >> /tmp/failed_apps
|
||||
|
||||
fi
|
||||
|
||||
unset armhf_webPackages
|
||||
unset arm64_webPackages
|
||||
unset all_webPackages
|
||||
unset armhf_packagename
|
||||
unset arm64_packagename
|
||||
unset all_packagename
|
||||
unset pi_apps_filepath_32
|
||||
unset pi_apps_filepath_64
|
||||
unset pi_apps_filepath
|
||||
|
|
@ -0,0 +1,170 @@
|
|||
#!/bin/bash
|
||||
|
||||
# to run this script as part of other update scripts, source the directory like below
|
||||
# source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
||||
|
||||
# for apps with an install-32 file, make sure that you supply the following variables before sourcing this script (examples for webcord shown below)
|
||||
# the ${webVer} variable within the url is important
|
||||
# it is assumed that your install script will contain a version variable with the version of the app you would like to keep updated automatically
|
||||
|
||||
# webVer=$(get_release SpacingBat3/WebCord)
|
||||
# armhf_url="https://github.com/SpacingBat3/WebCord/releases/download/v${webVer}/webcord_${webVer}_armhf.deb"
|
||||
|
||||
# for apps with an install-64 file, make sure that you supply the following variables before sourcing this script (examples for webcord shown below)
|
||||
# if a variable is already set, no need to duplicate it
|
||||
|
||||
# webVer=$(get_release SpacingBat3/WebCord)
|
||||
# arm64_url="https://github.com/SpacingBat3/WebCord/releases/download/v${webVer}/webcord_${webVer}_arm64.deb"
|
||||
|
||||
# for apps with a unified install file, make sure to supply the following variables before sourcing this script
|
||||
|
||||
# webVer=$(get_release subhra74/xdm)
|
||||
# all_url="https://github.com/subhra74/xdm/releases/download/${webVer}/xdm-setup-${webVer}.tar.xz"
|
||||
|
||||
# make sure webVer variable is supplied by the sourcing script
|
||||
if [ -n "$webVer" ]; then
|
||||
#iterate through all webVer supplied if an array
|
||||
for (( iter=0; iter<${#webVer[@]}; iter++ )); do
|
||||
#make array appear as one variable inside for loop
|
||||
webVer=${webVer[$iter]}
|
||||
pi_apps_ver_32=${pi_apps_ver_32[$iter]}
|
||||
pi_apps_ver_64=${pi_apps_ver_64[$iter]}
|
||||
pi_apps_ver=${pi_apps_ver[$iter]}
|
||||
armhf_url=${armhf_url[$iter]}
|
||||
arm64_url=${arm64_url[$iter]}
|
||||
all_url=${all_url[$iter]}
|
||||
if [[ $iter == "0" ]]; then
|
||||
version_number=""
|
||||
else
|
||||
version_number=$((iter + 1))
|
||||
fi
|
||||
# echo the versions
|
||||
status "The latest online version is: $webVer"
|
||||
|
||||
#set defaults for pi_app_ver if not supplied
|
||||
if [ -z "$pi_apps_ver_32" ] && [ -n "$armhf_url" ] && [ -f install-32 ]; then
|
||||
pi_apps_ver_32="$(cat 'install-32' | grep -m 1 "version${version_number}=" | sed "s/version${version_number}=//" | xargs)"
|
||||
fi
|
||||
|
||||
if [ -z "$pi_apps_ver_64" ] && [ -n "$arm64_url" ] && [ -f install-64 ]; then
|
||||
pi_apps_ver_64="$(cat 'install-64' | grep -m 1 "version${version_number}=" | sed "s/version${version_number}=//" | xargs)"
|
||||
fi
|
||||
|
||||
if [ -z "$pi_apps_ver" ] && [ -n "$all_url" ] && [ -f install ]; then
|
||||
pi_apps_ver="$(cat 'install' | grep -m 1 "version${version_number}=" | sed "s/version${version_number}=//" | xargs)"
|
||||
fi
|
||||
|
||||
# check for armhf and arm64 URL with a single install script using the same version
|
||||
if [ -z "$pi_apps_ver" ] && [ -z "$pi_apps_ver_32" ] && [ -z "$pi_apps_ver_64" ] && [ -n "$armhf_url" ] && [ -n "$arm64_url" ] && [ -f install ]; then
|
||||
pi_apps_ver="$(cat 'install' | grep -m 1 "version${version_number}=" | sed "s/version${version_number}=//" | xargs)"
|
||||
fi
|
||||
|
||||
# install-32 exists
|
||||
if [ -n "$pi_apps_ver_32" ] && [ -a "$DIRECTORY/apps/$app_name/install-32" ]; then
|
||||
status "The current version in Pi-Apps install-32 is: $pi_apps_ver_32"
|
||||
if [[ "$pi_apps_ver_32" = "$webVer" ]]; then
|
||||
#If the version is current do:
|
||||
status "Pi-Apps install-32 version for $app_name is current!"
|
||||
if ! validate_url "$armhf_url"; then
|
||||
warning "Current $app_name install-32 may be broken, the upstream file $armhf_url does NOT exist."
|
||||
echo '![badge-warning][badge-warning]'" Current $app_name install-32 may be broken, the upstream file $armhf_url does NOT exist." >> /tmp/failed_apps
|
||||
fi
|
||||
else
|
||||
#If version is not current do:
|
||||
if validate_url "$armhf_url"; then
|
||||
status_green "Updating pi-apps $app_name install-32 to: $armhf_url"
|
||||
sed -i "0,/version${version_number}=.*/s;;version${version_number}=${webVer};g" install-32
|
||||
sed -i "0,/version${version_number}=.*/s;;version${version_number}=${webVer};g" uninstall
|
||||
echo "- $app_name-armhf: $pi_apps_ver_32 -> ${webVer} " >> /tmp/updated_apps
|
||||
else
|
||||
warning "Updating $app_name install-32 had been skipped, the upstream file $armhf_url does NOT exist."
|
||||
echo '![badge-warning][badge-warning]'" Updating $app_name install-32 had been skipped, the upstream file $armhf_url does NOT exist." >> /tmp/failed_apps
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# install-64 exists
|
||||
if [ -n "$pi_apps_ver_64" ] && [ -a "$DIRECTORY/apps/$app_name/install-64" ]; then
|
||||
status "The current version in Pi-Apps install-64 is: $pi_apps_ver_64"
|
||||
if [[ "$pi_apps_ver_64" = "$webVer" ]]; then
|
||||
#If the version is current do:
|
||||
status "Pi-Apps install-64 version for $app_name is current!"
|
||||
if ! validate_url "$arm64_url"; then
|
||||
warning "Current $app_name install-64 may be broken, the upstream file $arm64_url does NOT exist."
|
||||
echo '![badge-warning][badge-warning]'" Current $app_name install-64 may be broken, the upstream file $arm64_url does NOT exist." >> /tmp/failed_apps
|
||||
fi
|
||||
else
|
||||
if validate_url "$arm64_url"; then
|
||||
status_green "Updating pi-apps $app_name install-64 to: $arm64_url"
|
||||
sed -i "0,/version${version_number}=.*/s;;version${version_number}=${webVer};g" install-64
|
||||
sed -i "0,/version${version_number}=.*/s;;version${version_number}=${webVer};g" uninstall
|
||||
echo "- $app_name-arm64: $pi_apps_ver_64 -> ${webVer} " >> /tmp/updated_apps
|
||||
else
|
||||
warning "Updating $app_name install-64 had been skipped, the upstream file $arm64_url does NOT exist."
|
||||
echo '![badge-warning][badge-warning]'" Updating $app_name install-64 had been skipped, the upstream file $arm64_url does NOT exist." >> /tmp/failed_apps
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# install exists and all_url is used
|
||||
if [ -n "$pi_apps_ver" ] && [ -n "$all_url" ] && [ -a "$DIRECTORY/apps/$app_name/install" ]; then
|
||||
status "The current version in Pi-Apps install is: $pi_apps_ver"
|
||||
if [[ "$pi_apps_ver" = "$webVer" ]]; then
|
||||
#If the version is current do:
|
||||
status "Pi-Apps install version for $app_name is current!"
|
||||
if ! validate_url "$all_url"; then
|
||||
warning "Current $app_name install may be broken, the upstream file $all_url does NOT exist."
|
||||
echo '![badge-warning][badge-warning]'" Current $app_name install may be broken, the upstream file $all_url does NOT exist." >> /tmp/failed_apps
|
||||
fi
|
||||
else
|
||||
if validate_url "$all_url"; then
|
||||
status_green "Updating pi-apps $app_name install to: $all_url"
|
||||
sed -i "0,/version${version_number}=.*/s;;version${version_number}=${webVer};g" install
|
||||
sed -i "0,/version${version_number}=.*/s;;version${version_number}=${webVer};g" uninstall
|
||||
echo "- $app_name-all: $pi_apps_ver -> ${webVer} " >> /tmp/updated_apps
|
||||
else
|
||||
warning "Updating $app_name install had been skipped, the upstream file $all_url does NOT exist."
|
||||
echo '![badge-warning][badge-warning]'" Updating $app_name install had been skipped, the upstream file $all_url does NOT exist." >> /tmp/failed_apps
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# install exists and individual armhf_url and arm64_url are supplied
|
||||
if [ -n "$pi_apps_ver" ] && [ -n "$armhf_url" ] && [ -n "$arm64_url" ] && [ -a "$DIRECTORY/apps/$app_name/install" ]; then
|
||||
status "The current version in Pi-Apps install is: $pi_apps_ver"
|
||||
if [[ "$pi_apps_ver" = "$webVer" ]]; then
|
||||
#If the version is current do:
|
||||
status "Pi-Apps install version for $app_name is current!"
|
||||
if ! ( validate_url "$armhf_url" && validate_url "$arm64_url" ); then
|
||||
warning "Current $app_name install may be broken, the upstream file $armhf_url or $arm64_url does NOT exist."
|
||||
echo '![badge-warning][badge-warning]'" Current $app_name install may be broken, the upstream file $armhf_url or $arm64_url does NOT exist." >> /tmp/failed_apps
|
||||
fi
|
||||
else
|
||||
if validate_url "$armhf_url" && validate_url "$arm64_url"; then
|
||||
status_green "Updating pi-apps $app_name install to: $armhf_url $arm64_url"
|
||||
sed -i "0,/version${version_number}=.*/s;;version${version_number}=${webVer};g" install
|
||||
sed -i "0,/version${version_number}=.*/s;;version${version_number}=${webVer};g" uninstall
|
||||
echo "- $app_name-all: $pi_apps_ver -> ${webVer} " >> /tmp/updated_apps
|
||||
else
|
||||
warning "Updating $app_name install had been skipped, the upstream file $armhf_url or $arm64_url does NOT exist."
|
||||
echo '![badge-warning][badge-warning]'" Updating $app_name install had been skipped, the upstream file $armhf_url or $arm64_url does NOT exist." >> /tmp/failed_apps
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
done
|
||||
else
|
||||
|
||||
warning "webVer variable is missing for $app_name update script, please fix this script, skipping update check."
|
||||
echo '![badge-issue][badge-issue]'" webVer variable is missing for $app_name update script, please fix this script, skipping update check." >> /tmp/failed_apps
|
||||
|
||||
fi
|
||||
|
||||
unset webVer
|
||||
unset pi_apps_ver_32
|
||||
unset pi_apps_ver_64
|
||||
unset pi_apps_ver
|
||||
unset armhf_url
|
||||
unset arm64_url
|
||||
unset all_url
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
# This is a basic workflow to help you get started with Actions
|
||||
|
||||
name: Update_Wiki_Scripts
|
||||
|
||||
# Controls when the workflow will run
|
||||
on:
|
||||
# triggers the action when megascript_apps.txt file is updated
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- 'etc/categories'
|
||||
- 'apps/**/install'
|
||||
- 'apps/**/install-32'
|
||||
- 'apps/**/install-64'
|
||||
- 'apps/**/description'
|
||||
- 'apps/**/credits'
|
||||
- 'apps/**/website'
|
||||
- '.github/workflows/update-wiki.sh'
|
||||
- '.github/workflows/update_wiki.yml'
|
||||
# run at 4:00 UTC every day
|
||||
schedule:
|
||||
- cron: '0 4 * * *'
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "build"
|
||||
update-wiki:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
- name: "Trigger analytics repo actions"
|
||||
run: |
|
||||
curl -XPOST -u "Botspot:${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/Botspot/pi-apps-analytics/dispatches --data '{"event_type": "update analytics"}'
|
||||
|
||||
- name: "Trigger website repo actions"
|
||||
run: |
|
||||
curl -XPOST -u "Botspot:${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/Pi-Apps-Coders/website/dispatches --data '{"event_type": "update applist"}'
|
||||
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release angryip/ipscan)
|
||||
arm64_url="https://github.com/angryip/ipscan/releases/download/${webVer}/ipscan_${webVer}_all.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(wget -qO- https://download.anydesk.com/rpi/ | grep '.deb</a><br>$' | tail -n 1 | sed 's+.*<a href="./anydesk_++g; s+_armhf.deb">anydesk_.*_armhf.deb</a><br>++g')
|
||||
armhf_url="https://download.anydesk.com/rpi/anydesk_${webVer}_armhf.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer="$(wget -qO- https://www.arduino.cc/en/software | grep md5sum.txt | sed s/.md5sum.txt.*//g | sed 's+.*href="//downloads.arduino.cc/arduino-++g')"
|
||||
armhf_url="https://downloads.arduino.cc/arduino-${webVer}-linuxarm.tar.xz"
|
||||
arm64_url="https://downloads.arduino.cc/arduino-${webVer}-linuxaarch64.tar.xz"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release ArmCord/ArmCord)
|
||||
armhf_url="https://github.com/ArmCord/ArmCord/releases/download/v${webVer}/ArmCord_${webVer}_armv7l.deb"
|
||||
arm64_url="https://github.com/ArmCord/ArmCord/releases/download/v${webVer}/ArmCord_${webVer}_arm64.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
webVer="$(wget -qO- https://www.bleachbit.org/download/linux | grep "Debian 11 (Bullseye)" | sed 's+.*/download/file/t?file=bleachbit_++g; s/_all.*//g')"
|
||||
all_url="https://download.bleachbit.org/bleachbit_${webVer}_all_debian11.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release JannisX11/blockbench)
|
||||
armhf_url="https://github.com/ryanfortner/blockbench-arm/raw/master/blockbench_${webVer}_armhf.deb"
|
||||
arm64_url="https://github.com/ryanfortner/blockbench-arm/raw/master/blockbench_${webVer}_arm64.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(wget -qO- https://raw.githubusercontent.com/flathub/com.boxy_svg.BoxySVG/master/com.boxy_svg.BoxySVG.yaml | grep 'url: https://firebasestorage.googleapis.com' | sed 's/.*url: //g' | tr '?-' '\n' | grep '\.zip$')
|
||||
all_url="https://firebasestorage.googleapis.com/v0/b/boxy-svg.appspot.com/o/linux%2Fapp-${webVer}?alt=media"
|
||||
|
||||
# use custom updater due to firebasestorage.googleapis.com not allowing URL verification
|
||||
# if the URL is not valid, this will updating this app will fail testing the install script in the github actions updater
|
||||
|
||||
# make sure webVer variable is supplied by the sourcing script
|
||||
if [ -n "$webVer" ]; then
|
||||
version_number=""
|
||||
# echo the versions
|
||||
status "The latest online version is: $webVer"
|
||||
|
||||
if [ -z "$pi_apps_ver" ] && [ -n "$all_url" ] && [ -f install ]; then
|
||||
pi_apps_ver="$(cat 'install' | grep -m 1 "version${version_number}=" | sed "s/version${version_number}=//" | xargs)"
|
||||
fi
|
||||
|
||||
# install exists and all_url is used
|
||||
if [ -n "$pi_apps_ver" ] && [ -n "$all_url" ] && [ -a "$DIRECTORY/apps/$app_name/install" ]; then
|
||||
status "The current version in Pi-Apps install is: $pi_apps_ver"
|
||||
if [[ "$pi_apps_ver" = "$webVer" ]]; then
|
||||
#If the version is current do:
|
||||
status "Pi-Apps install version for $app_name is current!"
|
||||
else
|
||||
status_green "Updating pi-apps $app_name install to: $all_url"
|
||||
sed -i "0,/version${version_number}=.*/s;;version${version_number}=${webVer};g" install
|
||||
echo "- $app_name-all: $pi_apps_ver -> ${webVer} " >> /tmp/updated_apps
|
||||
fi
|
||||
fi
|
||||
|
||||
else
|
||||
warning "webVer variable is missing for $app_name update script, please fix this script, skipping update check."
|
||||
echo '![badge-issue][badge-issue]'" webVer variable is missing for $app_name update script, please fix this script, skipping update check." >> /tmp/failed_apps
|
||||
fi
|
||||
|
||||
unset webVer
|
||||
unset pi_apps_ver
|
||||
unset all_url
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release browsh-org/browsh)
|
||||
armhf_url="https://github.com/browsh-org/browsh/releases/download/v${webVer}/browsh_${webVer}_linux_armv7.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release_raw ryanoasis/nerd-fonts)
|
||||
all_url="https://github.com/ryanoasis/nerd-fonts/releases/download/${webVer}/CascadiaCode.zip"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer[0]=$(get_release dave-theunsub/clamtk)
|
||||
webVer[1]=$(get_release dave-theunsub/thunar-sendto-clamtk)
|
||||
all_url[0]="https://github.com/dave-theunsub/clamtk/releases/download/v${webVer[0]}/clamtk_${webVer[0]}-1_all.deb"
|
||||
all_url[1]="https://github.com/dave-theunsub/thunar-sendto-clamtk/releases/download/v${webVer[1]}/thunar-sendto-clamtk_${webVer[1]}-1_all.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer[0]=$(get_release smartavionics/Cura)
|
||||
webVer[1]=$(get_release unlimitedbacon/stl-thumb)
|
||||
armhf_url[0]="https://github.com/smartavionics/Cura/releases/download/${webVer[0]}/Cura-${webVer[0]}-mb-armhf.AppImage"
|
||||
armhf_url[1]="https://github.com/unlimitedbacon/stl-thumb/releases/download/v${webVer[1]}/stl-thumb_${webVer[1]}_armhf.deb"
|
||||
arm64_url[0]="https://github.com/smartavionics/Cura/releases/download/${webVer[0]}/Cura-${webVer[0]}-mb-aarch64.AppImage"
|
||||
arm64_url[1]="https://github.com/unlimitedbacon/stl-thumb/releases/download/v${webVer[1]}/stl-thumb_${webVer[1]}_arm64.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(wget -qO- https://info2.ddnet.tw/info | jq -r '.version')
|
||||
all_url="https://github.com/ddnet/ddnet/tree/$webVer"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release SpacingBat3/WebCord)
|
||||
armhf_url="https://github.com/SpacingBat3/WebCord/releases/download/v${webVer}/webcord_${webVer}_armhf.deb"
|
||||
arm64_url="https://github.com/SpacingBat3/WebCord/releases/download/v${webVer}/webcord_${webVer}_arm64.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
# note, this webVer is potentially unstable and may not always work in the future depending on the package name (like what happened on 27 Mar 2022)
|
||||
# find a better way to do this in the future
|
||||
|
||||
webVer="$(wget -qO- https://launchpad.net/~cartes/+archive/ubuntu/drawing | grep ~focal | xargs)"
|
||||
armhf_url="https://launchpad.net/~cartes/+archive/ubuntu/drawing/+files/drawing_${webVer}_armhf.deb"
|
||||
arm64_url="https://launchpad.net/~cartes/+archive/ubuntu/drawing/+files/drawing_${webVer}_arm64.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release ponsato/ducopanel)
|
||||
arm64_url="https://github.com/ponsato/ducopanel/releases/download/${webVer}/ducopanel_${webVer}_arm64.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release electron/fiddle)
|
||||
armhf_url="https://github.com/electron/fiddle/releases/download/v${webVer}/electron-fiddle_${webVer}_armhf.deb"
|
||||
arm64_url="https://github.com/electron/fiddle/releases/download/v${webVer}/electron-fiddle_${webVer}_arm64.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release flameshot-org/flameshot)
|
||||
armhf_url="https://github.com/flameshot-org/flameshot/releases/download/v${webVer}/flameshot-${webVer}-1.debian-10.armhf.deb"
|
||||
arm64_url="https://github.com/flameshot-org/flameshot/releases/download/v${webVer}/flameshot-${webVer}-1.debian-10.arm64.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer="$(wget https://support.ekioh.com/download -qO- | grep '<div class="download-link-container">' -A 1 | grep pi64 | tail -1 | grep -o 'binaries.*\.zip' | sed 's+^binaries/++ ; s/\.zip//')"
|
||||
arm64_url="https://support.ekioh.com/download/binaries/${webVer}.zip"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
||||
webVer="$(wget https://support.ekioh.com/download -qO- | grep '<div class="download-link-container">' -A 1 | grep pi32 | tail -1 | grep -o 'binaries.*\.zip' | sed 's+^binaries/++ ; s/\.zip//')"
|
||||
armhf_url="https://support.ekioh.com/download/binaries/${webVer}.zip"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_prerelease FreeTubeApp/FreeTube)
|
||||
armhf_url="https://github.com/FreeTubeApp/FreeTube/releases/download/v${webVer}/freetube_${webVer%-beta}_armv7l.deb"
|
||||
arm64_url="https://github.com/FreeTubeApp/FreeTube/releases/download/v${webVer}/freetube_${webVer%-beta}_arm64.deb"
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(wget -qO- https://www.geekbench.com/download/linux/ | grep "for Linux. If your download does not start in" | sed "s/ for Linux.*//g ; s/.* //g")
|
||||
arm64_url="https://cdn.geekbench.com/Geekbench-${webVer}-LinuxARMPreview.tar.gz"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release_raw shiftkey/desktop | sed 's/release-//g' )
|
||||
armhf_url="https://github.com/shiftkey/desktop/releases/download/release-${webVer}/GitHubDesktop-linux-armhf-${webVer}.deb"
|
||||
arm64_url="https://github.com/shiftkey/desktop/releases/download/release-${webVer}/GitHubDesktop-linux-arm64-${webVer}.deb"
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release cli/cli)
|
||||
armhf_url="https://github.com/cli/cli/releases/download/v${webVer}/gh_${webVer}_linux_armv6.deb"
|
||||
arm64_url="https://github.com/cli/cli/releases/download/v${webVer}/gh_${webVer}_linux_arm64.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release Guake/guake)
|
||||
all_url="https://github.com/Guake/guake/tree/$webVer"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release Jai-JAP/hyper-arm-builds)
|
||||
armhf_url="https://github.com/Jai-JAP/hyper-arm-builds/releases/download/v${webVer}/hyper_${webVer}_armv7l.deb"
|
||||
arm64_url="https://github.com/Jai-JAP/hyper-arm-builds/releases/download/v${webVer}/hyper_${webVer}_arm64.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(curl 'https://data.services.jetbrains.com/products/releases?code=IIU%2CIIC&latest=true&type=release' -H 'authority: data.services.jetbrains.com' -H 'sec-ch-ua: "Chromium";v="95", ";Not A Brand";v="99"' -H 'accept: application/json, text/javascript, */*; q=0.01' -H 'sec-ch-ua-mobile: ?0' -H 'user-agent: Mozilla/5.0 (X11; CrOS armv7l 13597.84.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.78 Safari/537.36' -H 'sec-ch-ua-platform: "Linux"' -H 'origin: https://www.jetbrains.com' -H 'sec-fetch-site: same-site' -H 'sec-fetch-mode: cors' -H 'sec-fetch-dest: empty' -H 'referer: https://www.jetbrains.com/' -H 'accept-language: en-US,en;q=0.9' --compressed -s | jq | grep -m 1 version | sed 's/.*: //g; s/,//g; s/"//g')
|
||||
arm64_url="https://download.jetbrains.com/idea/ideaIC-${webVer}.tar.gz"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release Sussy-OS/LRA-Community-Edition)
|
||||
all_url="https://github.com/Sussy-OS/LRA-Community-Edition/releases/download/${webVer}/LineRider.game.auto-release.${webVer}-LR.zip"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release_raw lakinduakash/linux-wifi-hotspot)
|
||||
all_url="https://github.com/lakinduakash/linux-wifi-hotspot/tree/$webVer"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release Aleph-One-Marathon/alephone | tr -d "release-")
|
||||
|
||||
all_url[0]="https://github.com/Aleph-One-Marathon/alephone/releases/download/release-${webVer}/AlephOne-${webVer}.tar.bz2"
|
||||
all_url[1]="https://github.com/Aleph-One-Marathon/alephone/releases/download/release-${webVer}/Marathon-${webVer}-Data.zip"
|
||||
all_url[2]="https://github.com/Aleph-One-Marathon/alephone/releases/download/release-${webVer}/Marathon2-${webVer}-Data.zip"
|
||||
all_url[3]="https://github.com/Aleph-One-Marathon/alephone/releases/download/release-${webVer}/MarathonInfinity-${webVer}-Data.zip"
|
||||
|
||||
# custom updater for checking multiple URLs and one version
|
||||
|
||||
# echo the versions
|
||||
status "The latest online version is: $webVer"
|
||||
|
||||
version_number=""
|
||||
unset pi_apps_ver
|
||||
|
||||
if [ -f install ]; then
|
||||
pi_apps_ver="$(cat 'install' | grep -m 1 "version${version_number}=" | sed "s/version${version_number}=//" | xargs)"
|
||||
else
|
||||
warning "Could not find $app_name install file"
|
||||
echo '![badge-warning][badge-warning]'" Could not find $app_name install file" >> /tmp/failed_apps
|
||||
fi
|
||||
|
||||
if [ -a "$DIRECTORY/apps/$app_name/install" ]; then
|
||||
status "The current version in Pi-Apps install is: $pi_apps_ver"
|
||||
if [[ "$pi_apps_ver" = "$webVer" ]]; then
|
||||
#If the version is current do:
|
||||
status "Pi-Apps install version for $app_name is current!"
|
||||
else
|
||||
status=""
|
||||
for (( iter=0; iter<${#all_url[@]}; iter++ )); do
|
||||
#make array appear as one variable inside for loop
|
||||
webVer=${webVer}
|
||||
pi_apps_ver=${pi_apps_ver}
|
||||
all_url=${all_url[$iter]}
|
||||
if validate_url "$all_url"; then
|
||||
status=1
|
||||
status_green "Updating pi-apps $app_name install to: $all_url"
|
||||
else
|
||||
status=0
|
||||
warning "Updating $app_name install had been skipped, the upstream file $all_url does NOT exist."
|
||||
echo '![badge-warning][badge-warning]'" Updating $app_name install had been skipped, the upstream file $all_url does NOT exist." >> /tmp/failed_apps
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [[ $status == 1 ]]; then
|
||||
sed -i "0,/version${version_number}=.*/s;;version${version_number}=${webVer};g" install
|
||||
echo "- $app_name-all: $pi_apps_ver -> ${webVer} " >> /tmp/updated_apps
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
unset webVer
|
||||
unset pi_apps_ver_32
|
||||
unset pi_apps_ver_64
|
||||
unset pi_apps_ver
|
||||
unset armhf_url
|
||||
unset arm64_url
|
||||
unset all_url
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release PowerShell/PowerShell)
|
||||
armhf_url="https://github.com/PowerShell/PowerShell/releases/download/v${webVer}/powershell-${webVer}-linux-arm32.tar.gz"
|
||||
arm64_url="https://github.com/PowerShell/PowerShell/releases/download/v${webVer}/powershell-${webVer}-linux-arm64.tar.gz"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release IsmaelMartinez/teams-for-linux)
|
||||
armhf_url="https://github.com/IsmaelMartinez/teams-for-linux/releases/download/v${webVer}/teams-for-linux_${webVer}_armv7l.deb"
|
||||
arm64_url="https://github.com/IsmaelMartinez/teams-for-linux/releases/download/v${webVer}/teams-for-linux_${webVer}_arm64.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release minbrowser/min)
|
||||
armhf_url="https://github.com/minbrowser/min/releases/download/v${webVer}/min-${webVer}-armv7l.deb"
|
||||
arm64_url="https://github.com/minbrowser/min/releases/download/v${webVer}/min-${webVer}-arm64.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
# To avoid writing a custom updater script for this application, we will combine the separate version IDs used in the one URL as one large version variable.
|
||||
|
||||
# Build ID
|
||||
# This obtains the latest successful build ID.
|
||||
build_id="$(curl -s https://jenkins.thebrokenrail.com/job/minecraft-pi-reborn/job/master/lastStableBuild/buildNumber)"
|
||||
|
||||
# Version Number
|
||||
# This obtains the latest successful build's version number.
|
||||
deb_id="$(curl -s "https://jenkins.thebrokenrail.com/job/minecraft-pi-reborn/job/master/${build_id}/api/json?tree=artifacts%5BrelativePath%5D" | jq | grep 'client-.*-arm64.AppImage"' | sed 's/.*client-//g' | sed 's/-arm64.*//g')"
|
||||
|
||||
# Update
|
||||
webVer="${build_id}/artifact/out/minecraft-pi-reborn-client-${deb_id}"
|
||||
# This URL is only used for validation.
|
||||
armhf_url="https://jenkins.thebrokenrail.com/job/minecraft-pi-reborn/job/master/${webVer}-armhf.AppImage"
|
||||
arm64_url="https://jenkins.thebrokenrail.com/job/minecraft-pi-reborn/job/master/${webVer}-arm64.AppImage"
|
||||
source "${GITHUB_WORKSPACE}/.github/workflows/update_github_script.sh"
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer[0]=$(wget -qO- https://nodejs.org/en/download/current/ | tr '<>' '\n' | grep 'https://nodejs\.org/dist/.*\.tar\.gz' -m1 | tr '/' '\n' | grep '^v')
|
||||
armhf_url[0]="https://nodejs.org/dist/${webVer}/node-${webVer}-linux-armv7l.tar.xz"
|
||||
arm64_url[0]="https://nodejs.org/dist/${webVer}/node-${webVer}-linux-arm64.tar.xz"
|
||||
|
||||
webVer[1]=$(get_release_raw nvm-sh/nvm)
|
||||
all_url[1]="https://raw.githubusercontent.com/nvm-sh/nvm/${webVer[1]}/install.sh"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release notepad-plus-plus/notepad-plus-plus)
|
||||
armhf_url="https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v${webVer}/npp.${webVer}.portable.zip"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release_raw JanDeDobbeleer/oh-my-posh)
|
||||
arm64_url="https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/${webVer}/posh-linux-arm64"
|
||||
armhf_url="https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/${webVer}/posh-linux-arm"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release_raw actionschnitzel/PiGro-Aid-)
|
||||
all_url="https://github.com/actionschnitzel/PiGro-Aid-/tree/$webVer"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release processing/processing4)
|
||||
armhf_url="https://github.com/processing/processing4/releases/download/${webVer}/processing-$(echo ${webVer} | awk '{n=split($1,A,"-"); print A[n]}')-linux-arm32.tgz"
|
||||
arm64_url="https://github.com/processing/processing4/releases/download/${webVer}/processing-$(echo ${webVer} | awk '{n=split($1,A,"-"); print A[n]}')-linux-arm64.tgz"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release davidk/PrusaSlicer-ARM.AppImage | sed "s/ersion_//g")
|
||||
armhf_url="https://github.com/davidk/PrusaSlicer-ARM.AppImage/releases/download/version_${webVer}/PrusaSlicer-version_${webVer}-armhf.AppImage"
|
||||
arm64_url="https://github.com/davidk/PrusaSlicer-ARM.AppImage/releases/download/version_${webVer}/PrusaSlicer-version_${webVer}-aarch64.AppImage"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer="$(get_release pychess/pychess)"
|
||||
|
||||
all_url="https://github.com/pychess/pychess/releases/download/${webVer}/python3-pychess_${webVer}-1_all.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer="$(curl -s 'https://data.services.jetbrains.com/products/releases?code=PCP&latest=true&type=release&build=&_=1642490536688' -H 'authority: data.services.jetbrains.com' -H 'sec-ch-ua: "Chromium";v="95", ";Not A Brand";v="99"' -H 'accept: application/json, text/javascript, */*; q=0.01' -H 'sec-ch-ua-mobile: ?0' -H 'user-agent: Mozilla/5.0 (X11; CrOS armv7l 13597.84.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.78 Safari/537.36' -H 'sec-ch-ua-platform: "Linux"' -H 'origin: https://www.jetbrains.com' -H 'sec-fetch-site: same-site' -H 'sec-fetch-mode: cors' -H 'sec-fetch-dest: empty' -H 'referer: https://www.jetbrains.com/' -H 'accept-language: en-US,en;q=0.9' --compressed | jq | grep -m 1 version | sed 's/.*: //g; s/,//g; s/"//g')"
|
||||
arm64_url="https://download.jetbrains.com/python/pycharm-community-${webVer}-aarch64.tar.gz"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
echo "Checking Reaper version and getting urls..."
|
||||
webVer[0]=$(curl -s https://www.reaper.fm/download.php | grep "linux_aarch64.tar.xz" | sed -e 's/ /\n/g' -e 's/href="//g' -e 's/"//g' | grep 'linux_aarch64' | sed -e 's|files/.*/reaper||g' -e 's/_linux_aarch64.tar.xz//g')
|
||||
base_ver="$(echo ${webVer[0]} | sed -e 's/.$//' -e 's/.$//')"
|
||||
arm64_url[0]="https://www.reaper.fm/files/${base_ver}.x/reaper${webVer[0]}_linux_aarch64.tar.xz"
|
||||
armhf_url[0]="https://www.reaper.fm/files/${base_ver}.x/reaper${webVer[0]}_linux_armv7l.tar.xz"
|
||||
unset base_ver
|
||||
|
||||
echo -e "armhf: $armhf_url\narm64: $arm64_url\n webVer: $webVer"
|
||||
|
||||
echo "Checking ReaPack version..."
|
||||
webVer[1]="$(get_release cfillion/reapack)"
|
||||
arm64_url[1]="https://github.com/cfillion/reapack/releases/download/v${webVer[1]}/reaper_reapack-aarch64.so"
|
||||
armhf_url[1]="https://github.com/cfillion/reapack/releases/download/v${webVer[1]}/reaper_reapack-armv7l.so"
|
||||
|
||||
source ${GITHUB_WORKSPACE}/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer="$(curl -s https://files.renoise.com/demo/ | grep "armhf" | sed -e 's/<a href="//' -e 's/".*//' -e 's/Renoise_//' -e 's/_Demo_Linux_armhf.tar.gz//')"
|
||||
armhf_url="https://renoise.com/demo/Renoise_${webVer}_Demo_Linux_armhf.tar.gz"
|
||||
arm64_url="https://renoise.com/demo/Renoise_${webVer}_Demo_Linux_arm64.tar.gz"
|
||||
|
||||
source ${GITHUB_WORKSPACE}/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release_raw RiiConnect24/riitag-rpc)
|
||||
arm64_url="https://github.com/riiconnect24/riitag-rpc/releases/download/${webVer}/rpi-4b-aarch64.zip"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release_raw Genymobile/scrcpy)
|
||||
all_url="https://github.com/Genymobile/scrcpy/tree/$webVer"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release 00-Evan/shattered-pixel-dungeon)
|
||||
all_url="https://github.com/00-Evan/shattered-pixel-dungeon/releases/download/v${webVer}/ShatteredPD-v${webVer}-Java.jar"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(curl -s https://sonic-pi.net | grep -m 1 arm64.deb | sed 's/.*sonic-pi_//g; s/_bullseye\.arm64.*//g')
|
||||
arm64_url="https://sonic-pi.net/files/releases/v${webVer%_*}/sonic-pi_${webVer}_bullseye.arm64.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
armhf_webPackages="https://packagecloud.io/ookla/speedtest-cli/ubuntu/dists/bionic/main/binary-armhf/Packages"
|
||||
arm64_webPackages="https://packagecloud.io/ookla/speedtest-cli/ubuntu/dists/bionic/main/binary-arm64/Packages"
|
||||
armhf_packagename="speedtest"
|
||||
arm64_packagename="speedtest"
|
||||
|
||||
# The corresponding appname in pi-apps will have its corresponding filepath= variable update
|
||||
# the filepath variable will contain the full filepath of the debian package with the version included
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_debian_repo_script.sh
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
# specify the webVer method (commonly used when getting releases from github actions)
|
||||
# webVer="$(wget -qO- https://apt.syncthing.net/dists/syncthing/stable/binary-armhf/Packages | awk '/Package: syncthing\n/' RS= | grep "Version:" | awk '{print $2}' | sort -V | tail -n1)"
|
||||
# armhf_url="https://apt.syncthing.net/dists/syncthing/stable/binary-armhf/syncthing_${webVer}_armhf.deb"
|
||||
|
||||
# source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
||||
# new method written specifically for reading apt repo Packages file
|
||||
# this script method automatically obtains the Version: and Filename: from the online Packages file
|
||||
|
||||
armhf_webPackages="https://apt.syncthing.net/dists/syncthing/stable/binary-armhf/Packages"
|
||||
arm64_webPackages="https://apt.syncthing.net/dists/syncthing/stable/binary-arm64/Packages"
|
||||
armhf_packagename="syncthing"
|
||||
arm64_packagename="syncthing"
|
||||
|
||||
# The corresponding appname in pi-apps will have its corresponding filepath= variable update
|
||||
# the filepath variable will contain the full filepath of the debian package with the version included
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_debian_repo_script.sh
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
webVer=$(curl -s --header "Authorization: token $GH_PERSONAL_ACCESS_TOKEN" "https://api.github.com/repos/hakandundar34coding/system-monitoring-center/releases" | jq -r 'map(select(.prerelease==false)) | map(select(.draft==false)) | map(select(.tag_name | startswith("v1."))) | first | .tag_name' | sed s/^v//g)
|
||||
all_url="https://github.com/hakandundar34coding/system-monitoring-center/releases/download/v${webVer}/system-monitoring-center_${webVer}_all.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release Jai-JAP/tabby-arm-builds)
|
||||
armhf_url="https://github.com/Jai-JAP/tabby-arm-builds/releases/download/v${webVer}/tabby-${webVer}-linux-armhf.deb"
|
||||
arm64_url="https://github.com/Jai-JAP/tabby-arm-builds/releases/download/v${webVer}/tabby-${webVer}-linux-arm64.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
webVer="$(wget -qO- https://sourceforge.net/projects/tor-browser-ports/files | grep -F 'Download Latest Version' --after 1 | tail -n -1 | tr '<>\-_' '\n' | sed -n 8p)"
|
||||
armhf_url="https://sourceforge.net/projects/tor-browser-ports/files/${webVer}/tor-browser-linux-armhf-${webVer}_ALL.tar.xz/download"
|
||||
arm64_url="https://sourceforge.net/projects/tor-browser-ports/files/${webVer}/tor-browser-linux-arm64-${webVer}_ALL.tar.xz/download"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release TurboWarp/desktop)
|
||||
armhf_url="https://github.com/TurboWarp/desktop/releases/download/v${webVer}/TurboWarp-linux-armv7l-${webVer}.deb"
|
||||
arm64_url="https://github.com/TurboWarp/desktop/releases/download/v${webVer}/TurboWarp-linux-arm64-${webVer}.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer="$(wget -qO- https://gitlab.com/bztsrc/usbimager/-/raw/master/README.md | grep Raspberry | grep X11 | sed 's/-armv7l.*//g; s/.*usbimager_//g')"
|
||||
armhf_url="https://gitlab.com/bztsrc/usbimager/raw/binaries/usbimager_${webVer}-armv7l-linux-x11.zip"
|
||||
arm64_url="https://gitlab.com/bztsrc/usbimager/raw/binaries/usbimager_${webVer}-aarch64-linux-x11.zip"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release Ulauncher/Ulauncher)
|
||||
all_url="https://github.com/Ulauncher/Ulauncher/releases/download/${webVer}/ulauncher_${webVer}_all.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release yairm210/Unciv)
|
||||
all_url="https://github.com/yairm210/Unciv/releases/download/${webVer}/Unciv.jar"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer="$(get_release vscodium/vscodium)"
|
||||
armhf_url="https://github.com/VSCodium/vscodium/releases/download/${webVer}/codium_${webVer}_armhf.deb"
|
||||
arm64_url="https://github.com/VSCodium/vscodium/releases/download/${webVer}/codium_${webVer}_arm64.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer="$(wget --header="Accept: text/html" --user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36" -qO- https://sourceforge.net/projects/veracrypt/files/ | sed -n '/Latest/{n;p;}' | sed 's/.*veracrypt-//g; s/-setup.*//g')"
|
||||
armhf_url="https://sourceforge.net/projects/veracrypt/files/VeraCrypt%20${webVer}/Linux/veracrypt-${webVer}-Debian-10-armhf.deb"
|
||||
arm64_url="https://sourceforge.net/projects/veracrypt/files/VeraCrypt%20${webVer}/Linux/veracrypt-${webVer}-Debian-10-arm64.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer="$(wget -qO- --timeout=5 https://linux.wps.cn/ | grep -o 'wps\-office_.*_arm64\.deb' | sed 's/^wps\-office_//g' | sed 's/_arm64\.deb//g')"
|
||||
arm64_url="https://wps-linux-personal.wpscdn.cn/wps/download/ep/Linux2019/$(echo "$webVer" | sed 's/.*\.//g')/wps-office_${webVer}_arm64.deb"
|
||||
armhf_url="https://wps-linux-personal.wpscdn.cn/wps/download/ep/Linux2019/$(echo "$webVer" | sed 's/.*\.//g')/wps-office_${webVer}_arm64.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release cycool29/whatsapp-for-linux)
|
||||
armhf_url="https://github.com/cycool29/whatsapp-for-linux/releases/download/${webVer}/whatsapp_${webVer}_armhf.deb"
|
||||
arm64_url="https://github.com/cycool29/whatsapp-for-linux/releases/download/${webVer}/whatsapp_${webVer}_arm64.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer="$(wget -qO- https://www.worldpainter.net/ | grep -m 1 "worldpainter_.*.deb" | grep -o '_.*.deb' | tr -d '_' | sed 's/.deb//')"
|
||||
all_url="https://www.worldpainter.net/files/worldpainter_${webVer}.deb"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release_raw MoneroOcean/xmrig)
|
||||
all_url="https://github.com/MoneroOcean/xmrig/tree/$webVer"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(wget -qO- https://www.ratrabbit.nl/ratrabbit/xsnow/downloads/index.html | grep -A1 "Download source:" | tail -n 1 | sed 's/<p>//g ; s+</p>++g' | sed 's+"./../../../downloads/xsnow/xsnow-.*tar.gz">++g ; s+</a>++g' | grep -oP '^[^-]*\-\K[^*]+' | sed -n 's/.tar.gz//p')
|
||||
all_url="https://www.ratrabbit.nl/downloads/xsnow/xsnow-${webVer}.tar.gz"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer[0]=$(get_release subhra74/xdm)
|
||||
all_url[0]="https://github.com/subhra74/xdm/releases/download/${webVer[0]}/xdm-setup-${webVer[0]}.tar.xz"
|
||||
|
||||
webVer[1]=$(get_release ytdl-org/youtube-dl)
|
||||
all_url[1]="https://github.com/ytdl-org/youtube-dl/releases/download/${webVer[1]}/youtube-dl"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(wget --spider 'https://zoom.us/client/latest/zoom_x86_64.tar.xz' 2>&1 | grep '^Location: ' | awk '{print $2}' | awk -F/ '{print $5}')
|
||||
arm64_url="https://zoom.us/client/${webVer}/zoom_x86_64.tar.xz"
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release aristocratos/btop)
|
||||
armhf_url="https://github.com/aristocratos/btop/releases/download/v${webVer}/btop-armv7l-linux-musleabihf.tbz"
|
||||
arm64_url="https://github.com/aristocratos/btop/releases/download/v${webVer}/btop-aarch64-linux-musl.tbz"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release GitSquared/edex-ui)
|
||||
armhf_url="https://github.com/GitSquared/edex-ui/releases/download/v${webVer}/eDEX-UI-Linux-armv7l.AppImage"
|
||||
arm64_url="https://github.com/GitSquared/edex-ui/releases/download/v${webVer}/eDEX-UI-Linux-arm64.AppImage"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
webVer=$(get_release dbrgn/tealdeer)
|
||||
armhf_url="https://github.com/dbrgn/tealdeer/releases/download/v${webVer}/tealdeer-linux-arm-musleabihf"
|
||||
arm64_url="https://github.com/dbrgn/tealdeer/releases/download/v${webVer}/tealdeer-linux-armv7-musleabihf"
|
||||
|
||||
source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
name: Zip Preview
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [opened, edited]
|
||||
issue_comment:
|
||||
types: [created, edited]
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
|
||||
jobs:
|
||||
zip_preview_issue:
|
||||
if: ${{ contains(github.event_name, 'issues') && contains(github.event.issue.labels.*.name, 'Zip/PR included') }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Generate Preview Content
|
||||
id: zip_preview
|
||||
env:
|
||||
body: ${{ github.event.issue.body }}
|
||||
run: |
|
||||
zip_url="$(echo "$body" | sed -n '/### Upload file or Add PR Link/,/###/p' | grep -v "###" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*.zip(\?raw=true|)" | head -n 1)"
|
||||
if [ -z "$zip_url" ]; then
|
||||
exit 0
|
||||
else
|
||||
wget -O download.zip "$zip_url"
|
||||
echo "sha1=$(sha1sum download.zip | awk {'print $1}')" >> $GITHUB_OUTPUT
|
||||
unzip download.zip
|
||||
rm -f download.zip
|
||||
|
||||
files="$(find ./ -not -name '*.png' -type f | sed 's|^./||')"
|
||||
echo "zip_preview<<EOF" >> $GITHUB_OUTPUT
|
||||
IFS=$'\n'
|
||||
for file in $files; do
|
||||
echo '`'"$file"'`' >> $GITHUB_OUTPUT
|
||||
echo '```' >> $GITHUB_OUTPUT
|
||||
cat "$file" >> $GITHUB_OUTPUT
|
||||
echo $'\n''```' >> $GITHUB_OUTPUT
|
||||
done
|
||||
echo '' >> $GITHUB_OUTPUT
|
||||
echo "EOF" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
- name: Find Comment
|
||||
uses: peter-evans/find-comment@v2
|
||||
if: steps.zip_preview.outputs.zip_preview
|
||||
id: fc
|
||||
with:
|
||||
issue-number: ${{ github.event.issue.number }}
|
||||
comment-author: 'github-actions[bot]'
|
||||
body-includes: "The sha1sum of the zip was: ${{ steps.zip_preview.outputs.sha1 }}"
|
||||
- name: Add zip preview comment for issue
|
||||
uses: peter-evans/create-or-update-comment@v3
|
||||
if: steps.zip_preview.outputs.zip_preview
|
||||
with:
|
||||
comment-id: ${{ steps.fc.outputs.comment-id }}
|
||||
issue-number: ${{ github.event.issue.number }}
|
||||
edit-mode: replace
|
||||
body: |
|
||||
A zipfile was found in the body of your issue.
|
||||
The sha1sum of the zip was: ${{ steps.zip_preview.outputs.sha1 }}
|
||||
The contents can be previewed below:
|
||||
|
||||
${{ steps.zip_preview.outputs.zip_preview }}
|
||||
zip_preview_issue_comment:
|
||||
if: ${{ !contains(github.event_name, 'issues') && contains(github.event_name, 'issue_comment') && contains(github.event.issue.labels.*.name, 'Zip/PR included') && !github.event.issue.pull_request }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Generate Preview Content
|
||||
id: zip_preview
|
||||
env:
|
||||
body: ${{ github.event.comment.body }}
|
||||
run: |
|
||||
zip_url="$(echo "$body" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*.zip(\?raw=true|)" | head -n 1)"
|
||||
if [ -z "$zip_url" ]; then
|
||||
exit 0
|
||||
else
|
||||
wget -O download.zip "$zip_url"
|
||||
echo "sha1=$(sha1sum download.zip | awk {'print $1}')" >> $GITHUB_OUTPUT
|
||||
unzip download.zip
|
||||
rm -f download.zip
|
||||
|
||||
files="$(find ./ -not -name '*.png' -type f | sed 's|^./||')"
|
||||
echo "zip_preview<<EOF" >> $GITHUB_OUTPUT
|
||||
IFS=$'\n'
|
||||
for file in $files; do
|
||||
echo '`'"$file"'`' >> $GITHUB_OUTPUT
|
||||
echo '```' >> $GITHUB_OUTPUT
|
||||
cat "$file" >> $GITHUB_OUTPUT
|
||||
echo $'\n''```' >> $GITHUB_OUTPUT
|
||||
done
|
||||
echo '' >> $GITHUB_OUTPUT
|
||||
echo "EOF" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
- name: Find Comment
|
||||
uses: peter-evans/find-comment@v2
|
||||
if: steps.zip_preview.outputs.zip_preview
|
||||
id: fc
|
||||
with:
|
||||
issue-number: ${{ github.event.issue.number }}
|
||||
comment-author: 'github-actions[bot]'
|
||||
body-includes: "The sha1sum of the zip was: ${{ steps.zip_preview.outputs.sha1 }}"
|
||||
- name: Add zip preview comment for issue comment
|
||||
uses: peter-evans/create-or-update-comment@v3
|
||||
if: steps.zip_preview.outputs.zip_preview
|
||||
with:
|
||||
comment-id: ${{ steps.fc.outputs.comment-id }}
|
||||
issue-number: ${{ github.event.issue.number }}
|
||||
edit-mode: replace
|
||||
body: |
|
||||
A zipfile was found in the body of an issue comment.
|
||||
The sha1sum of the zip was: ${{ steps.zip_preview.outputs.sha1 }}
|
||||
The contents can be previewed below:
|
||||
|
||||
${{ steps.zip_preview.outputs.zip_preview }}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
# ignore update folder and other files that are generated but not part of the repo
|
||||
# this allows for commits to be made from a local working Artian sofware manager repo without pushing these file to github
|
||||
update
|
||||
etc/genapplist-yad
|
||||
data
|
||||
logs
|
||||
.vscode
|
||||
|
|
@ -0,0 +1,341 @@
|
|||
# Changelog
|
||||
|
||||
This changelog mainly covers major events in Artian-Apps like new apps being added.
|
||||
|
||||
If every action done since day one was mentioned, then "I suppose that even the world itself could not contain the books that should be written." ;)
|
||||
|
||||
Last updated: May 21, 2023 by [@Artian](https://git.fdc.abrish.ir/Artian)
|
||||
|
||||
## New Apps changelog:
|
||||
|
||||
- **09/22/2020** Added Arduino app
|
||||
- **09/22/2020** Added BalenaEtcher app
|
||||
- **09/22/2020** Added CommanderPi app
|
||||
- **09/22/2020** Added Cool Retro Term app
|
||||
- **09/22/2020** Added Cura app
|
||||
- **09/22/2020** Added Artian Power Tools app
|
||||
- **09/22/2020** Added template app
|
||||
- **09/22/2020** Added Windows 10 Theme app
|
||||
- **10/02/2020** Added Discord app
|
||||
- **10/02/2020** Added piKiss app
|
||||
- **10/03/2020** Added Conky app
|
||||
- **10/06/2020** Added Zoom app
|
||||
- **10/08/2020** Added Email Checker app
|
||||
- **10/10/2020** Added Color Emoji font app
|
||||
- **10/11/2020** Added Minecraft Java app
|
||||
- **10/11/2020** Added Update Buddy app
|
||||
- **10/12/2020** Added Minecraft Bedrock app
|
||||
- **10/13/2020** Added Boxy SVG app
|
||||
- **10/19/2020** Added Visual Studio Code app
|
||||
- **10/26/2020** Added Box86 app
|
||||
- **10/31/2020** Added Scrcpy app
|
||||
- **11/03/2020** Added SpeedTest-CLI app
|
||||
- **11/04/2020** Added Clam Antivirus app
|
||||
- **11/04/2020** Added USBImager app
|
||||
- **11/05/2020** Added eDEX-UI app
|
||||
- **11/06/2020** Added Chromium Widevine app
|
||||
- **11/09/2020** Added LibrePCB app
|
||||
- **11/09/2020** Added PrusaSlicer app
|
||||
- **11/16/2020** Added All Is Well app
|
||||
- **11/17/2020** Added PiGro app
|
||||
- **11/18/2020** Added Browsh app
|
||||
- **11/26/2020** Added Steam app
|
||||
- **11/28/2020** Added Pycharm CE app
|
||||
- **11/28/2020** Added WPS Office app
|
||||
- **11/29/2020** Added Timeshift app
|
||||
- **12/11/2020** Added Sublime Text app
|
||||
- **12/21/2020** Added Intellij IDEA app
|
||||
- **12/21/2020** Added Powerline-Shell app
|
||||
- **12/24/2020** Added Doom 3 app
|
||||
- **12/28/2020** Added Eagle CAD app
|
||||
- **12/28/2020** Added YouTubuddy app
|
||||
- **01/03/2021** Added Lightpad app
|
||||
- **01/03/2021** Added Mission Planner app
|
||||
- **01/03/2021** Added tldr app
|
||||
- **01/04/2021** Added Vivaldi app
|
||||
- **01/09/2021** Added Ulauncher app
|
||||
- **01/11/2021** Added AndroidBuddy app
|
||||
- **01/13/2021** Added jGRASP IDE app
|
||||
- **01/13/2021** Added Snap Store app
|
||||
- **01/16/2021** Added Angry IP scanner app
|
||||
- **01/20/2021** Added AnyDesk app
|
||||
- **01/26/2021** Added TeamViewer Host app
|
||||
- **01/27/2021** Added OBS Studio app
|
||||
- **01/28/2021** Added VeraCrypt app
|
||||
- **01/28/2021** Added VSCodium app
|
||||
- **01/30/2021** Added Minecraft Pi (Modded) app
|
||||
- **01/31/2021** Added Wine (x86) app
|
||||
- **02/01/2021** Added Remarkable app
|
||||
- **02/03/2021** Added Node.js app
|
||||
- **02/08/2021** Added FreeTube app
|
||||
- **02/08/2021** Added StackEdit app
|
||||
- **02/17/2021** Added QEMU app
|
||||
- **02/21/2021** Added Geany Dark Mode app
|
||||
- **03/04/2021** Added Mac OS Theme app
|
||||
- **03/08/2021** Added Snapdrop app
|
||||
- **03/10/2021** Added Descent 1 app
|
||||
- **03/10/2021** Added Descent 2 app
|
||||
- **03/10/2021** Added PPSSPP (PSP emulator) app
|
||||
- **03/14/2021** Added Stunt Rally app
|
||||
- **03/16/2021** Added Lokinet app
|
||||
- **03/18/2021** Added Notepad ++ app
|
||||
- **03/20/2021** Added WACUP (new WinAmp) app
|
||||
- **03/24/2021** Added Libreoffice MS theme app
|
||||
- **03/30/2021** Added Downgrade Chromium app
|
||||
- **03/30/2021** Added Github-CLI app
|
||||
- **04/06/2021** Added Wechat app
|
||||
- **04/08/2021** Added Bongo Cam app
|
||||
- **04/08/2021** Added OpenSCAD app
|
||||
- **04/10/2021** Added Flameshot app
|
||||
- **04/10/2021** Added Heroes 2 app
|
||||
- **04/10/2021** Added Processing IDE app
|
||||
- **04/10/2021** Added Scratch 2 app
|
||||
- **04/10/2021** Added Web Apps app
|
||||
- **04/12/2021** Added AstroMenace app
|
||||
- **04/13/2021** Added Lego Digital Designer app
|
||||
- **05/03/2021** Added PiSafe app
|
||||
- **05/04/2021** Added BlockPi app
|
||||
- **05/04/2021** Added Windows Screensavers app
|
||||
- **05/05/2021** Added Drawing app
|
||||
- **05/07/2021** Added Chiaki app
|
||||
- **07/02/2021** Added Conky Rings app
|
||||
- **07/02/2021** Added Https File Server app
|
||||
- **07/03/2021** Added Turbowarp app
|
||||
- **07/10/2021** Added Box64 app
|
||||
- **07/25/2021** Added Firefox Rapid Release app
|
||||
- **08/10/2021** Added Artian-Apps Terminal Plugin (bash) app
|
||||
- **08/10/2021** Added Artian-Apps Terminal Plugin (python) app
|
||||
- **08/11/2021** Added Autostar app
|
||||
- **08/11/2021** Added CloudBuddy app
|
||||
- **08/11/2021** Added Godot app
|
||||
- **09/01/2021** Added Windows Flasher app
|
||||
- **09/15/2021** Added Zoom PWA app
|
||||
- **09/19/2021** Added Sysmon app
|
||||
- **09/20/2021** Added Minecraft Java MultiMC5 app
|
||||
- **09/23/2021** Added Microsoft Teams app
|
||||
- **09/23/2021** Added WhatsApp app
|
||||
- **09/23/2021** Added XSnow app
|
||||
- **09/25/2021** Added Telegram app
|
||||
- **09/29/2021** Added Sonic Artian app
|
||||
- **10/04/2021** Added Codex app
|
||||
- **10/08/2021** Added Min app
|
||||
- **10/08/2021** Added Pale Moon app
|
||||
- **10/08/2021** Added Puffin app
|
||||
- **10/08/2021** Added Quartz app
|
||||
- **10/08/2021** Added Tor app
|
||||
- **10/11/2021** Added Amiberry app
|
||||
- **10/12/2021** Added BleachBit app
|
||||
- **10/14/2021** Added Persepolis Download Manager app
|
||||
- **10/14/2021** Added Xtreme Download Manager app
|
||||
- **10/17/2021** Added BlockBench app
|
||||
- **10/24/2021** Added Geekbench app
|
||||
- **10/26/2021** Added Oomox Theme Designer app
|
||||
- **10/26/2021** Added Temps app
|
||||
- **10/28/2021** Added Deskreen app
|
||||
- **11/06/2021** Added AntiMicroX app
|
||||
- **11/06/2021** Added btop++ app
|
||||
- **11/08/2021** Added Alacritty Terminal app
|
||||
- **11/15/2021** Added FF Multi Converter app
|
||||
- **11/30/2021** Added GIMP app
|
||||
- **11/30/2021** Added Imager app
|
||||
- **11/30/2021** Added Kolourpaint app
|
||||
- **11/30/2021** Added LibreOffice app
|
||||
- **11/30/2021** Added MuseScore app
|
||||
- **11/30/2021** Added Nautilus app
|
||||
- **11/30/2021** Added Scratch 3 app
|
||||
- **11/30/2021** Added Screenshot app
|
||||
- **11/30/2021** Added Shotwell app
|
||||
- **11/30/2021** Added Synaptic app
|
||||
- **12/01/2021** Added Filezilla app
|
||||
- **12/02/2021** Added Caprine app
|
||||
- **12/11/2021** Added Inkscape app
|
||||
- **12/13/2021** Added SysMonTask app
|
||||
- **12/15/2021** Added Audacious app
|
||||
- **12/15/2021** Added Audacity app
|
||||
- **12/15/2021** Added Chromium app
|
||||
- **12/15/2021** Added Deluge app
|
||||
- **12/15/2021** Added Disk Usage Analyzer app
|
||||
- **12/15/2021** Added GParted app
|
||||
- **12/15/2021** Added Guake Terminal app
|
||||
- **12/15/2021** Added Kodi app
|
||||
- **12/15/2021** Added NixNote2 app
|
||||
- **12/15/2021** Added Pinta app
|
||||
- **12/15/2021** Added Steam Link app
|
||||
- **12/15/2021** Added Thunderbird app
|
||||
- **12/15/2021** Added Transmission app
|
||||
- **12/21/2021** Added Unciv app
|
||||
- **01/04/2022** Added SimpleScreenRecorder app
|
||||
- **01/05/2022** Added More RAM app
|
||||
- **01/08/2022** Added Tetris CLI app
|
||||
- **01/09/2022** Added BlueJ Java IDE app
|
||||
- **01/10/2022** Added Nemo app
|
||||
- **01/19/2022** Added Microsoft PowerShell app
|
||||
- **01/19/2022** Added Minecraft Java Server app
|
||||
- **01/25/2022** Added HTTrack Website Copier app
|
||||
- **01/30/2022** Added Epiphany app
|
||||
- **02/10/2022** Added LineRider app
|
||||
- **02/12/2022** Added KeePassXC app
|
||||
- **02/21/2022** Added MatterControl app
|
||||
- **02/26/2022** Added PiKISS GUI app
|
||||
- **02/27/2022** Added Fritzing app
|
||||
- **02/28/2022** Added LibreCAD app
|
||||
- **03/01/2022** Added Cawbird app
|
||||
- **03/04/2022** Added VMware Horizon Client app
|
||||
- **03/24/2022** Added Ducopanel app
|
||||
- **03/24/2022** Added TiLP app
|
||||
- **03/25/2022** Added Syncthing app
|
||||
- **03/29/2022** Added Tabby app
|
||||
- **03/30/2022** Added Hyper app
|
||||
- **04/25/2022** Added System Monitoring Center app
|
||||
- **05/06/2022** Added Renoise (Demo) app
|
||||
- **05/07/2022** Added Github Desktop app
|
||||
- **05/07/2022** Added Reaper app
|
||||
- **05/08/2022** Added Dot Matrix app
|
||||
- **05/11/2022** Added Waveform app
|
||||
- **05/12/2022** Added LMMS app
|
||||
- **05/17/2022** Added Sphero SDK app
|
||||
- **05/18/2022** Added Electron Fiddle app
|
||||
- **05/19/2022** Added Better Chromium app
|
||||
- **05/20/2022** Added Neofetch app
|
||||
- **05/22/2022** Added ckb-next app
|
||||
- **05/23/2022** Added WorldPainter app
|
||||
- **05/24/2022** Added AbiWord app
|
||||
- **05/24/2022** Added PeaZip app
|
||||
- **05/26/2022** Added DDNet app
|
||||
- **05/31/2022** Added Linux Wifi Hotspot app
|
||||
- **05/31/2022** Added Xfburn app
|
||||
- **06/06/2022** Added Notejot app
|
||||
- **06/06/2022** Added Pac-Man app
|
||||
- **06/06/2022** Added Pika Backup app
|
||||
- **06/07/2022** Added Friday Night Funkin' Rewritten app
|
||||
- **06/13/2022** Rename TeamViewer Host to Teamviewer
|
||||
- **06/13/2022** Added Project OutFox app
|
||||
- **06/13/2022** Added PyChess app
|
||||
- **06/13/2022** Added Shattered Pixel Dungeon app
|
||||
- **06/13/2022** Added StepMania app
|
||||
- **06/17/2022** Added Marathon app
|
||||
- **06/21/2022** Added ArmCord app
|
||||
- **07/05/2022** Rename Minecraft Java to Minecraft Java Lunar
|
||||
- **07/07/2022** Added Celeste Classic app
|
||||
- **07/12/2022** Added XMRig app
|
||||
- **07/18/2022** Added Flow app
|
||||
- **09/15/2022** Added Minecraft Java GDLauncher app
|
||||
- **09/17/2022** Added Mu app
|
||||
- **10/19/2022** Added Minecraft Java Prism Launcher app
|
||||
- **01/05/2023** Added Pixelorama app
|
||||
- **01/06/2023** Added Gnome Builder IDE app
|
||||
- **03/28/2023** Added Brave app
|
||||
- **03/28/2023** Rename Discord to Webcord
|
||||
- **04/28/2023** Added Krita app
|
||||
- **04/30/2023** Added Gnome Software app
|
||||
- **05/17/2023** Added Monero GUI app
|
||||
|
||||
## Other notable changes:
|
||||
|
||||
- **3/20/2020** Initial idea of an app store. https://artianhpc.ir/
|
||||
- **9/20/2020** Development begins.
|
||||
- **9/22/2020** Initial upload to github, including these apps: Arduino, BalenaEtcher, Chromium Media Edition, CommanderPi, Cool Retro Term, Cura, FreeCAD, Pi-Power-Tools, Raspi2png, and Windows 10 Theme.
|
||||
- **10/1/2020** Many bugs fixed, createapp added.
|
||||
- **10/2/2020** More bug fixes & improvements.
|
||||
- **10/3/2020** Added some more icons
|
||||
- **10/4/2020** Added Artian-Apps Settings menu button, improve many descriptions, and a couple bug fixes to `pkg-install`.
|
||||
- **10/6/2020** Added license file, and a few more bug fixes
|
||||
- **10/7/2020** Added RetroPie app, overhaul the entire Settings app, and over 20 more bug fixes and improvements
|
||||
At this point, Artian-Apps is no longer in beta stage, but released on the Raspberry Artian forums.
|
||||
- **10/9/2020** Make Zoom install pulseaudio, and compile successfully.
|
||||
At this point, grayduck has said Artian-Apps will be added to TwisterOS.
|
||||
- **10/10/2020** More Zoom fixes, implement hidelist for grayduck
|
||||
- **10/11/2020** Rename Minecraft to Minecraft Java. Zoom now disables pulseaudio autostart.
|
||||
- **10/12/2020** Write the README
|
||||
- **10/15/2020** Fix update buddy, and zoom now disables pulseaudio autostart
|
||||
- **10/18/2020** Leepspvideo posted [this video](https://www.youtube.com/watch?v=zxyWQ3FV98I) featuring Artian-Apps. As a result, 3000+ people have installed Artian-Apps.
|
||||
- **10/20/2020** Enable preloading.
|
||||
- **10/21/2020** Fix Cool-Retro-Term install bug, and enable autostarted updater.
|
||||
- **10/12/2020** ETA Prime posted [this video](https://www.youtube.com/watch?v=oqNWJ52DLes) featuring Artian-Apps. As a result, 2000+ more people have installed Artian-Apps.
|
||||
- **10/26/2020** Mask pulseaudio.service for Zoom
|
||||
- **10/31/2020** Reached 20,000 total downloads
|
||||
- **11/2/2020** Artian-Apps added to [TwisterOS](https://twisteros.com/) with the 1.8.5 patch
|
||||
- **11/4/2020** Add README badge
|
||||
- **11/6/2020** Enable multiselecting apps to install/uninstall with Ctrl + Click
|
||||
- **11/14/2020** Chromium Media Edition deprecated in favour of Chromium Widevine for Chrome v84
|
||||
- **11/24/2020** Updated to now use terminal-run to fix Artian-apps not working with some terminal types. Updated all scripts to use ~/ instead of /home/pi
|
||||
- **11/26/2020** Added a credits section in the app creator
|
||||
- **11/27/2020** Added beta xlunch GUI which is more flexible than YAD.
|
||||
- **11/28/2020** Switch TBOPlayer to master branch.
|
||||
- **11/29/2020** Added testimonies, improved multi-installing apps.
|
||||
- **12/6/2020** Made Steam not install box86 on TwisterOS
|
||||
- **12/7/2020** Made Steam launch in Small mode by default
|
||||
- **12/27/2020** Boxy SVG app uses [Boxy-SVG-RPi](https://github.com/Botspot/Boxy-SVG-RPi) and Box86 app uses [box86-updater](https://github.com/Botspot/box86-updater)
|
||||
- **12/29/2020** Changed Doom 3 app to not wget script and added the "a guy" story in the README :laughing:
|
||||
- **1/2/2021** Removed Cordless app due to users being banned by Discord and support being dropped.
|
||||
- **1/5/2021** Added app request templates
|
||||
- **1/8/2021** Removed Chromium Media Edition app and started work on categories
|
||||
- **1/10/2021** Added categories!
|
||||
- **1/11/2021** Fixed preload error
|
||||
- **1/12/2021** Improved xlunch compilation
|
||||
- **1/13/2021** Minecraft Artian testing phase begins
|
||||
- **1/21/2021** Updated BalenaEtcher to v1.5.113
|
||||
- **1/27/2021** Added OBS Studio app
|
||||
- **1/28/2021** Added Artian-apps terminal command (you can now run Artian-apps with `Artian-apps`).
|
||||
- **2/13/2021** Added credits button for apps
|
||||
- **2/20/2021** Changed wine install scripts and fixed WhatsApp download bug.
|
||||
- **2/28/2021** Hidden Wine on Twister OS.
|
||||
- **3/7/2021** FreeCAD now uses precompiled debs, and added issue templates for Github bug reports
|
||||
- **3/11/2021** Changed box86 install to use itai's apt repository
|
||||
- **3/12/2021** Changed Node.js app to use nvm version manager and unhid BalenaEtcher on Twister OS
|
||||
- **3/14/2021** Added a "Installed" category for installed apps
|
||||
- **3/15/2021** Added Back to Chromium v86 app, and updated box86 to be installable on aarch64 OSes
|
||||
- **3/16/2021** Large upgrade to Zoom app
|
||||
- **3/17/2021** Added 64-bit support for Vivaldi
|
||||
- **3/18/2021** Added Doom 3 run in a 64-bit kernel with a 32-bit userland
|
||||
- **3/19/2021** Redesign all program icons, the Artian-Apps logo, and all screenshots.
|
||||
- **3/28/2021** Hide less apps on Twister OS Lite
|
||||
- **3/30/2021** Merge all Chromium downgrade apps into "Downgrade Chromium"
|
||||
- **3/31/2021** Updated Arduino IDE to change install location
|
||||
- **4/3/2021** Updated Update Buddy to show a update notification like Artian-apps
|
||||
- **4/7/2021** Bumped Discord version to renamed "WebCord"
|
||||
- **4/8/2021** Added new api script, improved icons, faster preloading. Updated whatsapp + stackedit.
|
||||
- **4/9/2021** Display user count for apps and squarify icons
|
||||
- **4/14-15-20/2021** Changed pkg-install to use dummy debs for depends to let APT handle depend issues
|
||||
- **4/24/2021** Forced updater to not update Wine and Steam on Twister OS
|
||||
- **5/4/2021** Numerous changes to api script and removed up/down buttons in GUI
|
||||
- **5/5/2021** Updated install/uninstall GUI icons
|
||||
- **5/6/2021** Updated trash icon
|
||||
- **5/7/2021** Fixed terminal title when multi-installing apps
|
||||
- **5/9/2021** Added qterminal support to Artian-apps and fix Wine precompiled kernel
|
||||
- **5/14/2021** Fixed update-exclusion and preload-daemon. Also added icon for disabled apps and made piKiss 32-bit only
|
||||
- **5/19/2021** Fixed Box86 multiarch on 64-bit
|
||||
- **5/24/2021** Allowed selecting apps to update in updater and added more api functions.
|
||||
- **6/19/2021** Update MCPI Modded to v2.x and use APT repo instead of Artian-apps updates to allow for faster package updates
|
||||
- **6/21/2021** Added support for STL thumbnails in file manager for Cura and 1.17 support to MC Java
|
||||
- **7/3/2021** Added install/uninstall output logging system
|
||||
- **7/4/2021** Added note about what kind of distros Artian-Apps will work on to README
|
||||
- **7/10/2021** Updated app screenshots in readme
|
||||
- **7/25/2021** Added "Never show again" option to updater notifications, and a 64-bit installation script for Sublime Text. Also changed updater to check for updates via `git pull` instead of old `git clone` system
|
||||
- **7/31/2021** Fixed writing update logs to home directory
|
||||
- **8/2/2021** Made Artian-Apps print support info at end of a script failure
|
||||
- **8/9/2021** Made 64-bit Zoom to use box64 and amd64 Zoom binaries, and updated install/uninstall code to mark scripts as executiable before running them
|
||||
- **8/10/2021** Added new bug reporting window after script failure, allowing users to send a bug report to the developers with the click of a button, added a bash-based terminal plugin app and auto sign unsigned APT repository. A ton of commits were made following the addition of the error reporter :)
|
||||
- **8/11/2021** Added checks for non-arm architectures and also add semi-support for Chromebooks
|
||||
- **8/13/2021** Added new "Search" button to search for apps
|
||||
- **8/15/2021** Added new startup splash screen to make the wait time a little less agonizing
|
||||
- **9/1/2021** Added Windows Flasher app, and translate all wget commands to aria2c for faster download speeds
|
||||
- **9/9/2021** Improve the "Get it on Pi-Apps" badge, and improve launch-time by optimizing the message of the day
|
||||
- **9/10/2021** All 3-month-old Pi-Apps installations are forcibly reinstalled
|
||||
- **9/21/2021** Rewrite the `updater` script for a better updating experience, and improve Pi-Apps launch-time with the genapplist-yad program
|
||||
- **9/22/2021** Optimize the update-checking time. Now it takes **2** seconds to check for updates instead of **15** seconds.
|
||||
- **9/23/2021** Add Microsoft Teams and XSnow apps; rename Whatsapp to WhatsApp
|
||||
- **9/24/2021** Improve the layout of the Pi-Apps README
|
||||
- **9/26/2021** Properly document Pi-Apps with the new DOCUMENTATION.md file
|
||||
- **10/7/2021** Replaced legacy minecraft launcher with Lunar Client and added 64-bit version of PPSSPP
|
||||
- **10/9/2021** Added the ability for users to choose between dark mode and light mode for YAD
|
||||
- **10/10/2021** Changed the "Sent Log" feature to be available only for errors relating to the script itself and not system
|
||||
- **10/24/2021** Added a "Import App" button to settings
|
||||
- **10/26/2021** Added individual icons for all categories
|
||||
- **5/16/2022** Major GUI updates and script modifications made. https://github.com/Botspot/pi-apps/pull/1580 https://github.com/Botspot/pi-apps/issues/1578
|
||||
- **10/7/2022** Switch to Pi-Apps self hosted shlink server instead of bitly for analytics tracking
|
||||
- **11/4/2022** Added analytics tracking for successfull user app updates
|
||||
- **1/10-11/2023** Added Github Actions based update verification/validity checker to the automatic updater.
|
||||
- **1/12-14/2023** Updated Pi-Apps icons and logo for 2023
|
||||
- **5/3/2023** Major improvements to [pi-apps.io](https://artianhpc.ir/) website
|
||||
- **5/21/2023** Changed nearly all app descriptions to explicitly say how to run the app.
|
||||
|
|
@ -0,0 +1,674 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1 @@
|
|||
open-sorcerer64
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
A free and open-source alternative to Microsoft Word.
|
||||
|
||||
AbiWord is a lightweight word processor compatible with a wide variety of file formats. It doesn't have all the bells and whistles of Microsoft Word or Libre Office's Writer, but it is more than enough for the average user.
|
||||
The source code is available at https://gitlab.gnome.org/World/AbiWord
|
||||
|
||||
NOTE: AbiWord uses .abw extension by default.
|
||||
|
||||
To run: Menu -> Office -> Abiword.
|
||||
To run in terminal: abiword.
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.9 KiB |
|
|
@ -0,0 +1 @@
|
|||
abiword
|
||||
|
|
@ -0,0 +1 @@
|
|||
http://www.abisource.com/
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
theofficialgman for building the debs.
|
||||
barnumbirr on github for making the debian sources.
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
A fast, cross-platform, OpenGL terminal emulator
|
||||
|
||||
Run from Menu: Menu -> System Tools -> Alacritty
|
||||
Run from Terminal: alacritty
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
install_packages "https://github.com/Pi-Apps-Coders/files/raw/main/alacritty_0.11.0-1_armhf.deb"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
install_packages "https://github.com/Pi-Apps-Coders/files/raw/main/alacritty_0.11.0-1_arm64.deb"
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue