Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit ce373d3

Browse files
author
x80486
authored
open drive release 0.2.2
1 parent 7a60eab commit ce373d3

File tree

9 files changed

+1070
-2289
lines changed

9 files changed

+1070
-2289
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
.flatpak-builder/
44
.idea/
55
build/
6+
flatpak-builder-tools/
7+
open-drive/
68

79
.DS_Store
810
Thumbs.db
911
*.iml
1012

1113

14+
#
1215
# Includes

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "shared-modules"]
2+
path = shared-modules
3+
url = https://github.com/flathub/shared-modules.git

README.asciidoc

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
= OpenSource Drive - ODrive
2+
:uri-open-drive-home: https://liberodark.github.io/ODrive/
3+
4+
{uri-open-drive-home}[OpenSource Drive - ODrive^] is a Google Drive GUI for Windows / Mac / Linux.
5+
6+
== Build, Install and Run Flatpak (locally)
7+
8+
Assuming `flatpak`, `flatpak-builder`, and `git` packages are installed, run the following commands:
9+
10+
[source,shell]
11+
----
12+
$ git clone https://github.com/flathub/io.github.liberodark.OpenDrive.git
13+
$ cd io.github.liberodark.OpenDrive/
14+
$ flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
15+
$ flatpak-builder build --force-clean --install-deps-from=flathub --install --user io.github.liberodark.OpenDrive.json
16+
17+
# ...to uninstall the artifact
18+
$ flatpak uninstall --delete-data --user io.github.liberodark.OpenDrive
19+
20+
# ...and to clean-up everything
21+
$ flatpak uninstall --unused --user
22+
$ rm -rf .flatpak-builder/ build/
23+
$ flatpak remote-delete --user flathub
24+
----
25+
26+
// git submodule foreach git pull origin master
27+
// git submodule update --init --recursive
28+
29+
== Update Flatpak
30+
31+
1. Make sure `git@2.21.0`, `yarn@1.16.0`, and `python@3.7.x` packages are installed
32+
1. Open `bootstrap.sh` and change/update the `TAG` variable accordingly
33+
1. Run `bootstrap.sh`
34+
1. Commit and push the updated `generated-sources.json` and `yarn.lock` files
35+
1. Update manifest and AppStream metadata accordingly
36+
37+
[TIP]
38+
`flatpak-builder-tools/` and `open-drive/` directories can be removed at this point.
39+
40+
== Roadmap
41+
:uri-issues-tracker: https://github.com/flathub/io.github.liberodark.OpenDrive/issues/
42+
43+
See the {uri-issues-tracker}[Issues^] tracker.

bootstrap.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env sh
2+
3+
TAG=0.2.2
4+
5+
set -xe
6+
7+
rm -rf flatpak-builder-tools/ open-drive/
8+
git clone https://github.com/flatpak/flatpak-builder-tools.git ./flatpak-builder-tools/
9+
git clone https://github.com/liberodark/ODrive.git ./open-drive/
10+
11+
cd open-drive/
12+
git checkout "${TAG}"
13+
14+
cp ../flatpak-builder-tools/yarn/flatpak-yarn-generator.py ./
15+
sed -i '/"x64": "x86_64"/a \ \"arm64": "aarch64",' flatpak-yarn-generator.py
16+
sed -i 's/"arm": "arm"/"armv7l": "arm"/g' flatpak-yarn-generator.py
17+
rm -f package-lock.json # ...because yarn complains about different packaging tools and what not
18+
yarn install
19+
yarn check --integrity
20+
yarn check --verify-tree
21+
python3 flatpak-yarn-generator.py yarn.lock -o ../generated-sources.json
22+
cp yarn.lock ../
23+
24+
unset TAG

0 commit comments

Comments
 (0)