Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial thoughts on structure updates #2048

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 56 additions & 13 deletions docs/how-to-publish-podverse-fdroid-beta.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,58 @@
# How to publish Podverse for F-Droid Beta

1) Get file in the right spot with the correct permissions.
1) Get the APK from the master-beta pipeline.
2) Change the name of the APK to be `com.podverse.fdroid_${versionCode}.apk`
3) Connect to `jammy-pv00` via ssh.
4) Upload the APK to `jammy-pv00` in the `/home/pv-f-droid/fdroid/repo`.
5) Check the hash is correct for the file on the server: `md5sum ${filename}`
6) Move the file to the beta fdroid repo: `mv com.podverse.fdroid_1700281421.apk /home/pv-f-droid/fdroid/repo/`
7) Give the `pv-f-droid` user ownership of the APK: `chown pv-f-droid /home/pv-f-droid/fdroid/repo/com.podverse.fdroid_1700281421.apk`
2) Update the metadata
1) Update the `description.txt` file to contain the latest release notes at: `/home/pv-f-droid/fdroid/metadata/com.podverse.fdroid/en-US/description.txt`
3) Change user to `pv-f-droid`: `su -l pv-f-droid`.
4) From the `/home/pv-f-droid/fdroid` directory, run `fdroid update`
5) From the `/home/pv-f-droid/fdroid` directory, run `fdroid deploy`
## File import

Get file in the right spot with the correct owernship and permissions.

Repo Dir: `/home/pv-f-droid/fdroid/repo`

Owner: `pv-f-droid`

filename: `com.podverse.fdroid_${versionCode}.apk`

### As root

1) Get the APK from the master-beta pipeline.
2) Change the name of the APK to be `com.podverse.fdroid_${versionCode}.apk`
3) Connect to `jammy-pv00` via ssh.
4) Upload the APK to `jammy-pv00` in the `/home/pv-f-droid/fdroid/repo`.
5) Check the hash is correct for the file on the server: `md5sum ${filename}`
6) Move the file to the beta fdroid repo:

```
mv com.podverse.fdroid_${versionCode}.apk /home/pv-f-droid/fdroid/repo/
```

7) Change the `pv-f-droid` user ownership of the APK:

```
chown pv-f-droid /home/pv-f-droid/fdroid/repo/com.podverse.fdroid_${versionCode}.apk
```

## F-Droid Server

### Update the metadata

Update the `description.txt` file to contain the latest release notes at: `/home/pv-f-droid/fdroid/metadata/com.podverse.fdroid/en-US/description.txt`

### pv-f-droid user

Change user to `pv-f-droid`: `su -l pv-f-droid`.

#### F-Droid server update

From the `/home/pv-f-droid/fdroid` directory, run `fdroid update`

```
cd /home/pv-f-droid/fdroid
fdroid update
```

#### F-Droid server deploy

From the `/home/pv-f-droid/fdroid` directory, run `fdroid deploy`

```
cd /home/pv-f-droid/fdroid
fdroid deploy
```