1
0
Fork 0

primeiro commit

This commit is contained in:
Raul Dipeas 2022-06-08 16:07:50 -03:00
commit f01318e1a0
28 changed files with 487 additions and 0 deletions

17
.editorconfig Normal file
View File

@ -0,0 +1,17 @@
root = true
[*]
end_of_line = lf
insert_final_newline = false
[*.{js,py}]
charset = utf-8
[*.py]
indent_style = space
indent_size = 4
[Makefile]
indent_style = tab
[lib/**.js]
indent_style = space
indent_size = 2
[{package.json,.travis.yml}]
indent_style = space
indent_size = 2

48
.github/workflows/apt-repository.yml vendored Normal file
View File

@ -0,0 +1,48 @@
# This is a basic workflow to help you get started with Actions
name: APT repository
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# 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"
build:
# 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 a multi-line script
run: |
sudo add-apt-repository -yn multiverse
sudo add-apt-repository -yn universe
echo\
'deb [arch=all] https://proget.hunterwittenborn.com makedeb main'|\
sudo tee\
/etc/apt/sources.list.d/makedeb.list
wget -qO-\
'https://proget.hunterwittenborn.com/debian-feeds/makedeb.pub'|\
sudo gpg --dearmor -o\
/etc/apt/trusted.gpg.d/makedeb-archive-keyring.gpg\
>/dev/null
sudo apt update
sudo apt install -y makedeb
# Runs a single command using the runners shell
- name: Run a one-line script
#run: echo Hello, world!
run: bash build.sh

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
assets/packages
*.deb
*.aria2
pipeline.sh

21
build.sh Normal file
View File

@ -0,0 +1,21 @@
#!/bin/bash
set -e
# Build
mkdir -p assets/packages
for SCRIPT in scripts/mkpkg/*.sh
do
bash "$SCRIPT"
done
for SCRIPT in scripts/getpkg/*.sh
do
bash "$SCRIPT"
done
mv ./*.deb assets/packages
# GemFury
for PACKAGE in assets/packages/*.deb
do
curl -F\
package=@"$PACKAGE"\
https://"$GEMFURY_PUSH_TOKEN"@push.fury.io/rauldipeas/
done

View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
# Bitwarden
rm -rf Bitwarden*.deb
aria2c --console-log-level=error --summary-interval=0\
'https://vault.bitwarden.com/download/?app=desktop&platform=linux&variant=deb'

View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
# Blue Mail
rm -rf BlueMail*.deb
aria2c --console-log-level=error --summary-interval=0\
https://download.bluemail.me/BlueMail/deb/BlueMail.deb

View File

@ -0,0 +1,8 @@
#!/bin/bash
set -e
# CFS Zen tweaks
rm -rf cfs-zen-tweaks*.deb
aria2c --console-log-level=error --summary-interval=0\
"$(wget -qO-\
https://api.github.com/repos/igo95862/cfs-zen-tweaks/releases|\
grep browser_download_url|grep download|grep .deb|head -n1|cut -d '"' -f4)"

View File

@ -0,0 +1,7 @@
#!/bin/bash
set -e
# Discord
rm -rf discord.deb
aria2c --console-log-level=error --summary-interval=0\
'https://discord.com/api/download?platform=linux&format=deb'\
-o discord.deb

View File

@ -0,0 +1,8 @@
#!/bin/bash
set -e
# FreeTube
rm -rf freetube*.deb
aria2c --console-log-level=error --summary-interval=0\
"$(wget -qO-\
https://api.github.com/repos/FreeTubeApp/FreeTube/releases|\
grep browser_download_url|grep amd64.deb|head -n1|cut -d '"' -f4)"

View File

@ -0,0 +1,7 @@
#!/bin/bash
set -e
# Freezer
rm -rf freezer*.deb
aria2c --console-log-level=error --summary-interval=0\
"$(wget -qO-\
https://freezerapk.com/download|grep deb|cut -d '"' -f6)"

View File

@ -0,0 +1,7 @@
#!/bin/bash
set -e
# Heroic
rm -rf gitqlient*.deb
aria2c --console-log-level=error --summary-interval=0\
"$(wget -qO- https://api.github.com/repos/francescmm/GitQlient/releases|\
grep browser_download_url|grep amd64.deb|head -n1|cut -d '"' -f4)"

7
scripts/getpkg/heroic.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
set -e
# Heroic
rm -rf heroic.deb
aria2c --console-log-level=error --summary-interval=0\
"$(wget -qO- https://api.github.com/repos/Heroic-Games-Launcher/HeroicGamesLauncher/releases|\
grep browser_download_url|grep amd64.deb|head -n1|cut -d '"' -f4)"

6
scripts/getpkg/iriun.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
# Iriun Webcam
rm -rf iriunwebcam*.deb
aria2c --console-log-level=error --summary-interval=0\
"$(curl -sL https://iriun.com/|grep deb|cut -d '"' -f4)"

8
scripts/getpkg/lsd.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
set -e
# LSD
rm -rf lsd*.deb
aria2c --console-log-level=error --summary-interval=0\
"$(wget -qO-\
https://api.github.com/repos/Peltoche/lsd/releases|\
grep browser_download_url|grep download|grep amd64.deb|head -n1|cut -d '"' -f4)"

8
scripts/getpkg/rambox.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
set -e
# Rambox
rm -rf Rambox*.deb
aria2c --console-log-level=error --summary-interval=0\
"$(wget -qO-\
https://api.github.com/repos/ramboxapp/download/releases|\
grep browser_download_url|grep 64.deb|head -n1|cut -d '"' -f4)"

12
scripts/getpkg/rclone.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
set -e
# RClone
rm -rf rclone*.deb
aria2c --console-log-level=error --summary-interval=0\
"$(wget -qO-\
https://api.github.com/repos/dimitrov-adrian/RcloneTray/releases|\
grep browser_download_url|grep amd64.deb|head -n1|cut -d '"' -f4)"
aria2c --console-log-level=error --summary-interval=0\
"$(wget -qO-\
https://api.github.com/repos/rclone/rclone/releases|\
grep browser_download_url|grep amd64.deb|head -n1|cut -d '"' -f4)"

9
scripts/getpkg/sfizz.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
set -e
# Sfizz
rm -rf sfizz*.deb
aria2c --console-log-level=error --summary-interval=0\
"$(wget -qO-\
'https://software.opensuse.org/download.html?project=home%3Asfztools%3Asfizz&package=sfizz'|\
grep amd64.deb|grep 20.04|cut -d '"' -f2)"
rm -rf sfizz*.metalink

View File

@ -0,0 +1,8 @@
#!/bin/bash
set -e
# Streamon
rm -rf instagram-live-streamer*.deb
aria2c --console-log-level=error --summary-interval=0\
"$(wget -qO-\
https://api.github.com/repos/haxzie/instagram-live-streamer/releases|\
grep browser_download_url|grep amd64.deb|head -n1|cut -d '"' -f4)"

15
scripts/getpkg/stremio.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
set -e
# Stremio
rm -rf\
libfdk-aac1*.deb\
stremio*.deb
aria2c --console-log-level=error --summary-interval=0\
http://ftp.debian.org/debian/pool/non-free/f/fdk-aac/\
"$(wget -qO-\
http://ftp.debian.org/debian/pool/non-free/f/fdk-aac/|\
grep libfdk-aac1|grep amd64.deb|head -n2|tail -n1|cut -d '"' -f8)"
aria2c --console-log-level=error --summary-interval=0\
"$(wget -qO-\
https://www.stremio.com/downloads|\
grep amd64.deb|cut -d '"' -f222)"

View File

@ -0,0 +1,8 @@
#!/bin/bash
set -e
# System Monitoring Center
rm -rf system-monitoring-center*.deb
aria2c --console-log-level=error --summary-interval=0\
"$(wget -qO-\
https://api.github.com/repos/hakandundar34coding/system-monitoring-center/releases|\
grep browser_download_url|grep all.deb|head -n1|cut -d '"' -f4)"

7
scripts/getpkg/touche.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
set -e
# Touche
aria2c --console-log-level=error --summary-interval=0\
"$(wget -qO-\
https://api.github.com/repos/JoseExposito/touche/releases|\
grep browser_download_url|grep download|grep amd64.deb|head -n1|cut -d '"' -f4)"

View File

@ -0,0 +1,16 @@
#!/bin/bash
set -e
# Fluent Reader #TODO
rm -rf fluent-reader-bin*
git clone -q\
https://aur.archlinux.org/fluent-reader-bin.git
cd fluent-reader-bin
sed -i\
's/depends=("gtk3" "nss")//g'\
PKGBUILD
makedeb -d #-H 'Section: network'
cd ..
cp\
fluent-reader-bin/fluent-reader*.deb\
assets/packages/
rm -rf fluent-reader-bin*

63
scripts/mkpkg/larkdocs.sh Normal file
View File

@ -0,0 +1,63 @@
#!/bin/bash
set -e
# Lark Docs #TODO
rm -rf larkdocs*
sudo apt install -y npm
sudo npm install -g nativefier
aria2c --console-log-level=error --summary-interval=0\
'https://p16-hera-va.ibyteimg.com/tos-useast2a-i-hn4qzgxq2n/bf9a8171ac3e4d0d9b82b1558024b7d9~tplv-hn4qzgxq2n-image:0:0.image'\
-o icon.png
nativefier\
-p linux\
-a x64\
-i icon.png\
--disable-context-menu\
--disable-dev-tools\
--single-instance\
https://rauldipeas.larksuite.com/
mkdir -p\
larkdocs/{DEBIAN,opt,usr/share/applications,usr/share/pixmaps}
mv\
Webapp-linux-x64\
larkdocs/opt/larkdocs
mv\
icon.png\
larkdocs/usr/share/pixmaps/larkdocs.png
ELECTRON_RELEASE="$(wget -qO-\
https://raw.githubusercontent.com/nativefier/nativefier/master/src/constants.ts|\
grep "DEFAULT_ELECTRON_VERSION ="|cut -d "'" -f2)"
cat <<EOF |tee larkdocs/DEBIAN/control>/dev/null
Package: larkdocs
Priority: optional
Section: misc
Maintainer: Raul Dipeas <rauldipeas@mail.com>
Architecture: amd64
Version: 0.1~electron-$ELECTRON_RELEASE
Installed-Size: $(du -s larkdocs|sed 's/ //g'|sed 's/larkdocs//g')
Homepage: https://larksuite.com
Description: Access Lark Docs on Linux.
EOF
cat <<EOF |tee larkdocs/usr/share/applications/larkdocs.desktop>/dev/null
[Desktop Entry]
Type=Application
StartupNotify=true
Terminal=false
Comment=Access Lark Docs on Linux.
Name=Lark Docs
GenericName=Lark Docs desktop app
Icon=larkdocs
Exec=/opt/larkdocs/Webapp
Categories=Office
EOF
cd larkdocs
find -type f|\
sed 's@\./@@g'|\
grep -v DEBIAN|\
xargs md5sum\
>DEBIAN/md5sums
cd ..
dpkg-deb -b larkdocs .
cp\
larkdocs*.deb\
assets/packages/
rm -rf larkdocs*

View File

@ -0,0 +1,13 @@
#!/bin/bash
set -e
# Nerd Fonts(LSD)
rm -rf nerd-fonts-hack*
git clone -q\
https://aur.archlinux.org/nerd-fonts-hack.git
cd nerd-fonts-hack
makedeb
cd ..
cp\
nerd-fonts-hack/nerd-fonts-hack*.deb\
assets/packages/
rm -rf nerd-fonts-hack*

View File

@ -0,0 +1,17 @@
#!/bin/bash
set -e
# OBS multi RTMP #TODO
rm -rf obs-multi-rtmp
git clone -q\
https://aur.archlinux.org/obs-multi-rtmp.git
cd obs-multi-rtmp
sudo apt install -y\
cmake\
libobs-dev\
obs-studio
makedeb
cd ..
cp\
obs-multi-rtmp/obs-multi-rtmp*.deb\
assets/packages/
rm -rf obs-multi-rtmp

View File

@ -0,0 +1,32 @@
#!/bin/bash
set -e
# Plasma HUD
mkdir -p plasma-hud/{DEBIAN,usr/lib/plasma-hud,etc/xdg/autostart}
git clone -q https://github.com/Zren/plasma-hud plasma-hud-source
cp -rf plasma-hud-source/usr/lib/plasma-hud/plasma-hud plasma-hud/usr/lib/plasma-hud/
cp -rf plasma-hud-source/etc/xdg/autostart/plasma-hud.desktop plasma-hud/etc/xdg/autostart/
PLASMA_HUD_TAG=$(wget -qO- https://api.github.com/repos/Zren/plasma-hud/releases|\
grep tag|head -n1|cut -d '"' -f4|sed 's@https://github.com/Zren/plasma-hud/releases/tag/@@g')
cat <<EOF |tee plasma-hud/DEBIAN/control>/dev/null
Package: plasma-hud
Version: $PLASMA_HUD_TAG
Depends: appmenu-gtk2-module, appmenu-gtk3-module, gir1.2-gtk-3.0, rofi, python3, python3-dbus, python3-setproctitle, python3-xlib
Section: desktop
Priority: optional
Architecture: amd64
Installed-Size: $(du -s plasma-hud|sed 's/ //g'|sed 's/plasma-hud//g')
Maintainer: Martchus <Martchus@github.com>
Description: Tray application and Dolphin/Plasma integration for Syncthing.
EOF
cd plasma-hud
find -type f|\
sed 's@\./@@g'|\
grep -v DEBIAN|\
xargs md5sum\
>DEBIAN/md5sums
cd ..
dpkg-deb -b plasma-hud .
cp\
plasma-hud*.deb\
assets/packages/
rm -rf plasma-hud*

63
scripts/mkpkg/raindrop.sh Normal file
View File

@ -0,0 +1,63 @@
#!/bin/bash
set -e
# Raindrop #TODO
rm -rf raindrop*
sudo apt install -y npm
sudo npm install -g nativefier
aria2c --console-log-level=error --summary-interval=0\
'https://avatars.githubusercontent.com/u/6144133?s=200&v=4'\
-o icon.png
nativefier\
-p linux\
-a x64\
-i icon.png\
--disable-context-menu\
--disable-dev-tools\
--single-instance\
https://app.raindrop.io/
mkdir -p\
raindrop/{DEBIAN,opt,usr/share/applications,usr/share/pixmaps}
mv\
Raindrop.io-linux-x64\
raindrop/opt/raindrop
mv\
icon.png\
raindrop/usr/share/pixmaps/raindrop.png
ELECTRON_RELEASE="$(wget -qO-\
https://raw.githubusercontent.com/nativefier/nativefier/master/src/constants.ts|\
grep "DEFAULT_ELECTRON_VERSION ="|cut -d "'" -f2)"
cat <<EOF |tee raindrop/DEBIAN/control>/dev/null
Package: raindrop
Priority: optional
Section: misc
Maintainer: Raul Dipeas <rauldipeas@mail.com>
Architecture: amd64
Version: 0.1~electron-$ELECTRON_RELEASE
Installed-Size: $(du -s raindrop|sed 's/ //g'|sed 's/raindrop//g')
Homepage: https://raindrop.io
Description: Access Raindrop on Linux.
EOF
cat <<EOF |tee raindrop/usr/share/applications/raindrop.desktop>/dev/null
[Desktop Entry]
Type=Application
StartupNotify=true
Terminal=false
Comment=Access Raindrop on Linux.
Name=Raindrop
GenericName=Raindrop desktop app
Icon=raindrop
Exec=/opt/raindrop/Raindrop.io
Categories=Network
EOF
cd raindrop
find -type f|\
sed 's@\./@@g'|\
grep -v DEBIAN|\
xargs md5sum\
>DEBIAN/md5sums
cd ..
dpkg-deb -b raindrop .
cp\
raindrop*.deb\
assets/packages/
rm -rf raindrop*

View File

@ -0,0 +1,56 @@
#!/bin/bash
set -e
# SyncThing Tray #TODO
rm -rf syncthingtray*
aria2c --console-log-level=error --summary-interval=0\
"$(wget -qO-\
https://api.github.com/repos/Martchus/syncthingtray/releases|\
grep browser_download_url|grep download|grep linux|head -n2|tail -n1|cut -d '"' -f4)"
mkdir -p\
syncthingtray/{DEBIAN,usr/bin,usr/share/applications,usr/share/pixmaps}
tar -Jxf syncthingtray*.tar.xz
mv\
syncthingtray-*-x86_64-pc-linux-gnu\
syncthingtray/usr/bin/syncthingtray
rm\
syncthingtray-x86_64-pc-linux-gnu\
syncthingtray*.tar.xz
cat <<EOF |tee syncthingtray/usr/share/applications/syncthingtray.desktop>/dev/null
[Desktop Entry]
Name=Syncthing Tray
GenericName=Syncthing Tray
Comment=Tray application for Syncthing
Exec=syncthingtray
Icon=syncthing
Terminal=false
Type=Application
Categories=Network;
EOF
wget -q\
https://upload.wikimedia.org/wikipedia/commons/8/83/SyncthingAugustLogo.png\
-O syncthingtray/usr/share/pixmaps/syncthing.png
SYNCTHINGTRAY_TAG=$(wget -qO- https://api.github.com/repos/Martchus/syncthingtray/releases|\
grep tag|head -n1|cut -d '"' -f4|sed 's@https://github.com/Martchus/syncthingtray/releases/tag/v@@g')
cat <<EOF |tee syncthingtray/DEBIAN/control>/dev/null
Package: syncthingtray
Version: $SYNCTHINGTRAY_TAG
Depends: syncthing
Section: network
Priority: optional
Architecture: amd64
Installed-Size: $(du -s syncthingtray|sed 's/ //g'|sed 's/syncthingtray//g')
Maintainer: Martchus <Martchus@github.com>
Description: Tray application and Dolphin/Plasma integration for Syncthing.
EOF
cd syncthingtray
find -type f|\
sed 's@\./@@g'|\
grep -v DEBIAN|\
xargs md5sum\
>DEBIAN/md5sums
cd ..
dpkg-deb -b syncthingtray .
cp\
syncthingtray*.deb\
assets/packages/
rm -rf syncthingtray*