parent
500d809b31
commit
21d35c7ec1
@ -0,0 +1,4 @@
|
||||
echo "---"
|
||||
echo "Строим пакет..."
|
||||
echo "---"
|
||||
flatpak-builder build-dir --force-clean org.flatpak.ByeDPI.yml
|
@ -0,0 +1,4 @@
|
||||
rm -rf build
|
||||
rm -rf build-dir
|
||||
rm -rf .flatpak-builder
|
||||
rm *.tar.gz
|
@ -0,0 +1,24 @@
|
||||
echo "---"
|
||||
echo "Скачивание бинарного файла..."
|
||||
echo "---"
|
||||
# Fetch the latest release information from the GitHub API
|
||||
response=$(curl -s https://api.github.com/repos/hufrea/byedpi/releases/latest)
|
||||
# Extract the release tag and the desired file name
|
||||
release_tag=$(echo "$response" | grep -o '"tag_name": "[^"]*' | sed 's/"tag_name": "//')
|
||||
file_name=$(echo "$response" | grep -o 'byedpi-[^"]*x86_64\.tar\.gz' | head -n 1)
|
||||
# Construct the download link
|
||||
download_link="https://github.com/hufrea/byedpi/releases/download/$release_tag/$file_name"
|
||||
|
||||
wget $download_link
|
||||
|
||||
echo "---"
|
||||
echo "Создаём папку для сборки..."
|
||||
echo "---"
|
||||
mkdir build
|
||||
|
||||
echo "---"
|
||||
echo "Распаковываем и достаём файлы..."
|
||||
echo "---"
|
||||
tar -xvf *.tar.gz
|
||||
chmod +x "ciadpi-x86_64"
|
||||
mv "ciadpi-x86_64" build/
|
@ -0,0 +1,9 @@
|
||||
flatpak-builder --user --install --force-clean build-dir org.flatpak.ByeDPI.yml
|
||||
|
||||
echo "------------"
|
||||
echo "Установка завершена!"
|
||||
echo "Запуск: flatpak run org.flatpak.ByeDPI --help"
|
||||
echo ""
|
||||
echo "Пример использования:"
|
||||
echo "flatpak run org.flatpak.ByeDPI --disorder 1 --auto=torst --tlsrec 1+s --debug 1"
|
||||
echo "------------"
|
@ -0,0 +1,7 @@
|
||||
echo "Установите пакеты: flatpak-builder"
|
||||
read -p "Продолжить..."
|
||||
|
||||
echo "---"
|
||||
echo "Установка SDK..."
|
||||
echo "---"
|
||||
flatpak install flathub org.freedesktop.Platform//23.08 org.freedesktop.Sdk//23.08
|
@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
|
||||
show_help() {
|
||||
echo "$0 [down-only / build-only / install-only]"
|
||||
echo ""
|
||||
echo "down-only только скачать файл"
|
||||
echo "build-only только построить пакет"
|
||||
echo "install-only только установить пакет"
|
||||
echo "clean очистка всех файлов сборки"
|
||||
echo "uninstall удалить приложение"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ "$#" == 0 ]; then
|
||||
# INSTALL
|
||||
./install_requirements.sh
|
||||
./download.sh
|
||||
./install.sh
|
||||
elif [ "$#" == 1 ]; then
|
||||
arg=$1
|
||||
if [ $arg == "down-only" ]; then
|
||||
./download.sh
|
||||
elif [ $arg == "build-only" ]; then
|
||||
./build.sh
|
||||
elif [ $arg == "install-only" ]; then
|
||||
./install.sh
|
||||
elif [ $arg == "clean" ]; then
|
||||
./clean.sh
|
||||
elif [ $arg == "uninstall" ]; then
|
||||
./uninstall.sh
|
||||
else
|
||||
show_help
|
||||
fi
|
||||
else
|
||||
show_help
|
||||
fi
|
@ -0,0 +1,31 @@
|
||||
id: org.flatpak.ByeDPI
|
||||
runtime: org.freedesktop.Platform
|
||||
runtime-version: '23.08'
|
||||
sdk: org.freedesktop.Sdk
|
||||
command: "/app/ciadpi-x86_64"
|
||||
finish-args:
|
||||
# X11 + XShm access
|
||||
#- --share=ipc
|
||||
#- --socket=fallback-x11
|
||||
# Wayland access
|
||||
#- --socket=wayland
|
||||
# Needs to talk to the network:
|
||||
- --share=network
|
||||
# Audio
|
||||
#- --socket=pulseaudio
|
||||
# GPU
|
||||
#- --device=dri
|
||||
# Persist dir
|
||||
#- --persist=.catangens-minecraft
|
||||
# Open files (NOT WORK)
|
||||
#- --talk-name=org.freedesktop.portal.FileChooser.OpenFile
|
||||
modules:
|
||||
- name: ByeDPI
|
||||
buildsystem: simple
|
||||
build-commands:
|
||||
- cp -r ciadpi-x86_64 /app/
|
||||
sources:
|
||||
- type: dir
|
||||
path: "build"
|
||||
#- type: file
|
||||
# path: test.sh
|
@ -0,0 +1 @@
|
||||
flatpak remove org.flatpak.ByeDPI
|
Loading…
Reference in new issue