Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fdroid-repo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
fdroid-repo
Commits
c19359ce
Unverified
Commit
c19359ce
authored
4 months ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
feat: update fdroid
parent
360903ff
Branches
main
No related tags found
No related merge requests found
Pipeline
#3026
passed
4 months ago
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+1
-2
1 addition, 2 deletions
.gitignore
Dockerfile
+11
-33
11 additions, 33 deletions
Dockerfile
src/apksigner.sh
+0
-2
0 additions, 2 deletions
src/apksigner.sh
src/update_repo.sh
+3
-4
3 additions, 4 deletions
src/update_repo.sh
with
15 additions
and
41 deletions
.gitignore
+
1
−
2
View file @
c19359ce
/build.sh
/deploy.sh
/.idea/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Dockerfile
+
11
−
33
View file @
c19359ce
ARG
BUILD_TOOLS=34.0.0
FROM
openjdk:8-jdk
as
builder
ARG
BUILD_TOOLS
RUN
apt-get
--quiet
update
--yes
&&
\
apt-get
--quiet
install
--yes
wget
tar
unzip lib32stdc++6 lib32z1
RUN
wget
--quiet
--output-document
=
android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
&&
\
unzip
-q
android-sdk.zip
-d
android-sdk-linux
&&
\
rm
android-sdk.zip
RUN
mkdir
android-sdk-linux/licenses
&&
\
printf
"8933bad161af4178b1185d1a37fbf41ea5269c55
\n
d56f5187479451eabf01fb78af6dfcb131a6481e
\n
24333f8a63b6825ea9c5514f83c2829b004d1fee"
>
android-sdk-linux/licenses/android-sdk-license
&&
\
printf
"84831b9409646a918e30573bab4c9c91346d8abd"
>
android-sdk-linux/licenses/android-sdk-preview-license
RUN
android-sdk-linux/tools/bin/sdkmanager
--update
>
/dev/null
RUN
android-sdk-linux/tools/bin/sdkmanager
\
"build-tools;
${
BUILD_TOOLS
}
"
\
>
/dev/null
RUN
ls
android-sdk-linux/build-tools/34.0.0/
FROM
ubuntu:latest
ARG
BUILD_TOOLS
ENV
TZ=Etc/UTC
ENV
DEBIAN_FRONTEND=noninteractive
RUN
apt-get update
&&
apt-get
-y
install
--no-install-recommends
\
default-jdk-headless git python3-pip python3-wheel python3-setuptools python3-venv tzdata
&&
\
apt-get
install
-y
--no-install-recommends
$(
apt-cache depends fdroidserver |
grep
-Fv
-e
java
-e
jdk
-e
'<'
|
awk
'/Depends:/{print$2}'
)
&&
\
rm
-rf
/var/lib/apt/lists/
*
RUN
git clone
--depth
1 https://gitlab.com/fdroid/fdroidserver.git
\
&&
cd
fdroidserver
\
&&
pip3
install
--no-binary
python-vagrant
-e
.
\
&&
python3 setup.py compile_catalog build
\
&&
python3 setup.py
install
COPY
--from=builder /android-sdk-linux/build-tools/${BUILD_TOOLS} /opt/android-sdk
ADD
src/fdroid.asc /usr/share/keyrings/fdroid.asc
ADD
src/fdroid.list /etc/apt/sources.list.d/fdroid.list
RUN
apt-get update
\
&&
apt-get update
\
&&
apt-get
-y
install
--no-install-recommends
\
rsync
\
tzdata
\
fdroidserver
\
&&
rm
-rf
/var/lib/apt/lists/
*
\
&&
apt-get clean
ADD
src/update_repo.sh /
...
...
This diff is collapsed.
Click to expand it.
src/apksigner.sh
deleted
100755 → 0
+
0
−
2
View file @
360903ff
#!/bin/sh
exec
java
-jar
/usr/share/apksigner/apksigner.jar
This diff is collapsed.
Click to expand it.
src/update_repo.sh
+
3
−
4
View file @
c19359ce
#!/bin/bash
PATH
=
$PATH
:/opt/android-sdk
mkdir
-p
/workdir/repo/
rsync
-rctv
--exclude
=
".*"
/metadata/
*
/workdir/
rsync
-rctv
/builds/
*
.apk /workdir/repo/
/fdroidserver/
fdroid update
--use-date-from-apk
/fdroidserver/
fdroid signindex
/fdroidserver/
fdroid deploy
fdroid update
--use-date-from-apk
fdroid signindex
fdroid deploy
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment