mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
Merge branch 'master' of https://github.com/YouROK/TorrServer
This commit is contained in:
24
.gitlab-ci.yml
Normal file
24
.gitlab-ci.yml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
stages:
|
||||||
|
- build_go
|
||||||
|
|
||||||
|
build_go:
|
||||||
|
image: golang:latest
|
||||||
|
stage: build_go
|
||||||
|
when: manual
|
||||||
|
tags:
|
||||||
|
- amd64
|
||||||
|
artifacts:
|
||||||
|
name: "TorrServer"
|
||||||
|
paths:
|
||||||
|
- dist
|
||||||
|
script:
|
||||||
|
- apt update
|
||||||
|
- apt install -y npm zip
|
||||||
|
- rm -rf /var/lib/apt/lists/*
|
||||||
|
- npm install -g yarn
|
||||||
|
- wget -q "https://dl.google.com/android/repository/android-ndk-r25c-linux.zip"
|
||||||
|
- unzip ./android-ndk-r25c-linux.zip
|
||||||
|
- rm ./android-ndk-r25c-linux.zip
|
||||||
|
- pwd
|
||||||
|
- ls -l
|
||||||
|
- ./build-all.sh
|
||||||
10
build-all.sh
10
build-all.sh
@@ -1,9 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PLATFORMS=(
|
PLATFORMS=(
|
||||||
|
'linux/amd64'
|
||||||
'linux/arm64'
|
'linux/arm64'
|
||||||
'linux/arm7'
|
'linux/arm7'
|
||||||
'linux/amd64'
|
|
||||||
'linux/arm5'
|
'linux/arm5'
|
||||||
'linux/386'
|
'linux/386'
|
||||||
'windows/amd64'
|
'windows/amd64'
|
||||||
@@ -90,9 +90,9 @@ declare -a COMPILERS=(
|
|||||||
"amd64:x86_64-linux-android21-clang"
|
"amd64:x86_64-linux-android21-clang"
|
||||||
)
|
)
|
||||||
|
|
||||||
export NDK_VERSION="23.1.7779620" # 25.1.8937393
|
export NDK_VERSION="25.2.9519653" # 25.1.8937393
|
||||||
export NDK_TOOLCHAIN=${ANDROID_HOME}/ndk/${NDK_VERSION}/toolchains/llvm/prebuilt/darwin-x86_64
|
#export NDK_TOOLCHAIN=${ANDROID_HOME}/ndk/${NDK_VERSION}/toolchains/llvm/prebuilt/darwin-x86_64
|
||||||
|
export NDK_TOOLCHAIN="${PWD}/../android-ndk-r25c/toolchains/llvm/prebuilt/linux-x86_64"
|
||||||
GOOS=android
|
GOOS=android
|
||||||
|
|
||||||
for V in "${COMPILERS[@]}"; do
|
for V in "${COMPILERS[@]}"; do
|
||||||
@@ -115,4 +115,4 @@ if [[ "${FAILURES}" != "" ]]; then
|
|||||||
echo ""
|
echo ""
|
||||||
echo "failed on: ${FAILURES}"
|
echo "failed on: ${FAILURES}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -131,8 +131,6 @@ func loadDB() {
|
|||||||
err = dec.Decode(&torr)
|
err = dec.Decode(&torr)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
ftorrs = append(ftorrs, torr)
|
ftorrs = append(ftorrs, torr)
|
||||||
} else {
|
|
||||||
log.TLogln("Error read rutor db:", err)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
torrs = ftorrs
|
torrs = ftorrs
|
||||||
|
|||||||
Reference in New Issue
Block a user