-
-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Patrizio Bekerle <[email protected]>
- Loading branch information
Showing
9 changed files
with
193 additions
and
110 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Use `just <recipe>` to run a recipe | ||
# https://just.systems/man/en/ | ||
|
||
# By default, run the `--list` command | ||
default: | ||
@just --list | ||
|
||
build: | ||
docker build -t aqt-list . | ||
|
||
run: | ||
docker run --rm ./path/file -d aqt-list |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Use `just <recipe>` to run a recipe | ||
# https://just.systems/man/en/ | ||
|
||
# By default, run the `--list` command | ||
default: | ||
@just --list | ||
|
||
build: | ||
docker build -t qownnotes-ubuntu22-dev . | ||
|
||
bash: | ||
docker run -it --rm qownnotes-ubuntu22-dev bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
# Use `just <recipe>` to run a recipe | ||
# https://just.systems/man/en/ | ||
|
||
# By default, run the `--list` command | ||
default: | ||
@just --list | ||
|
||
# Variables | ||
|
||
transferDir := `if [ -d "$HOME/NextcloudPrivate/Transfer" ]; then echo "$HOME/NextcloudPrivate/Transfer"; else echo "$HOME/Nextcloud/Transfer"; fi` | ||
|
||
# Aliases | ||
|
||
alias fix-linting := clang-format | ||
|
||
# Build the translations | ||
[group('translations')] | ||
translations-build: | ||
lrelease src/QOwnNotes.pro | ||
|
||
# Download the translations from Crowdin | ||
[group('translations')] | ||
translations-download: | ||
./scripts/download_translations.sh | ||
|
||
# Upload the translations to Crowdin | ||
[group('translations')] | ||
translations-upload: | ||
crowdin upload | ||
|
||
# Update the translations files | ||
[group('translations')] | ||
translations-update-files: | ||
./scripts/update-translations.sh | ||
|
||
# Build the application for nix | ||
[group('nix')] | ||
nix-build: | ||
nix-build -E '((import <nixpkgs> {}).qt6Packages.callPackage (import ./default.nix) { })' | ||
|
||
# Build the application for nix for aaarch64 (throws errors while building Qt6) | ||
[group('nix')] | ||
nix-build-aarch64: | ||
nix-build -E '((import <nixpkgs> {}).pkgsCross.aarch64-multiplatform.qt6Packages.callPackage (import ./default.nix) { })' | ||
|
||
# Build the application with cmake and Qt5 for nix | ||
[group('nix')] | ||
nix-build-cmake-qt5: | ||
nix-build -E '((import <nixpkgs> {}).libsForQt5.callPackage (import ./build-systems/nix/default-cmake-qt5.nix) { })' | ||
|
||
# Build the application with Qt5 for nix | ||
[group('nix')] | ||
nix-build-qt5: | ||
nix build '.?submodules=1#qownnotes-qt5' | ||
|
||
# Build the application with Qt 5.15.3 for nix | ||
[group('nix')] | ||
nix-build-qt5153: | ||
nix build '.?submodules=1#qownnotes-qt5153' | ||
|
||
# Force a rebuild of the application with Qt5 for nix | ||
[group('nix')] | ||
nix-build-qt5-force: | ||
nix build '.?submodules=1#qownnotes-qt5' --rebuild | ||
|
||
# Force a rebuild of the application with Qt 5.15.3 for nix | ||
[group('nix')] | ||
nix-build-qt5153-force: | ||
nix build '.?submodules=1#qownnotes-qt5153' --rebuild | ||
|
||
# Build the application with Qt6 for nix with a trace | ||
[group('nix')] | ||
nix-build-trace: | ||
nix-build -E '((import <nixpkgs> {}).qt6Packages.callPackage (import ./default.nix) { })' --show-trace | ||
|
||
# Force a rebuild of the application with Qt6 for nix | ||
[group('nix')] | ||
nix-build-force: | ||
nix-build -E '((import <nixpkgs> {}).qt6Packages.callPackage (import ./default.nix) { })' --check | ||
|
||
# Run the built application for nix | ||
[group('nix')] | ||
nix-run: | ||
./result/bin/QOwnNotes --session test & | ||
|
||
# Build the application direclty from the source | ||
[group('src-build')] | ||
src-build: | ||
mkdir -p build-QOwnNotes; cd build-QOwnNotes && qmake "CONFIG+=debug USE_SYSTEM_BOTAN=1" ../src/QOwnNotes.pro && make | ||
|
||
# Clean the build directory | ||
[group('src-build')] | ||
src-clean: | ||
rm -rf build-QOwnNotes | ||
|
||
# Run the built application | ||
[group('src-build')] | ||
src-run: | ||
./build-QOwnNotes/QOwnNotes | ||
|
||
# Build and run the application | ||
[group('src-build')] | ||
src-build-run: src-build src-run | ||
|
||
# Do a clang format on the project | ||
[group('linter')] | ||
clang-format: | ||
./scripts/clang-format-project.sh | ||
|
||
# Check links in the markdown files | ||
[group('linter')] | ||
link-check: | ||
lychee './**/*.md' | ||
|
||
# Apply a git patch to the project | ||
[group('patches')] | ||
git-apply-qownnotes-patch: | ||
git apply {{ transferDir }}/qownnotes.patch | ||
|
||
# Apply a git patch to qmarkdowntextedit | ||
[group('patches')] | ||
git-apply-qmarkdowntextedit-patch: | ||
cd ./src/libraries/qmarkdowntextedit | ||
git apply {{ transferDir }}/qmarkdowntextedit.patch | ||
|
||
# Create a git patch for the project and some libraries | ||
[group('patches')] | ||
git-create-patch: | ||
@echo "transferDir: {{ transferDir }}" | ||
git diff --no-ext-diff --staged --binary > {{ transferDir }}/qownnotes.patch | ||
cd src/libraries/qmarkdowntextedit && git diff --no-ext-diff --staged --binary > {{ transferDir }}/qmarkdowntextedit.patch | ||
cd ../piwiktracker && git diff --no-ext-diff --staged --binary > {{ transferDir }}/piwiktracker.patch | ||
cd ../qttoolbareditor && git diff --no-ext-diff --staged --binary > {{ transferDir }}/qttoolbareditor.patch | ||
ls -l1t {{ transferDir }} | head -5 | ||
|
||
# Open the Crowdin webpage | ||
[group('translations')] | ||
open-crowdin-webpage: | ||
xdg-open https://crowdin.com/project/qownnotes/activity-stream | ||
|
||
# Fig the settings.ui file after QtCreator has destroyed it | ||
[group('linter')] | ||
fix-settings-ui-file: | ||
./scripts/fix-settings-ui-file.sh | ||
|
||
# Format all justfiles | ||
[group('linter')] | ||
just-format: | ||
#!/usr/bin/env bash | ||
# Find all files named "justfile" recursively and run just --fmt --unstable on them | ||
find . -type f -name "justfile" -print0 | while IFS= read -r -d '' file; do | ||
echo "Formatting $file" | ||
just --fmt --unstable -f "$file" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Use `just <recipe>` to run a recipe | ||
# https://just.systems/man/en/ | ||
|
||
# By default, run the `--list` command | ||
default: | ||
@just --list | ||
|
||
bash: | ||
#docker run -it --rm --volume .:/app --user $(id -u) node:12 bash | ||
#docker-compose run --rm dev bash -c "cd /app && bash" | ||
docker-compose exec dev bash -c "cd /app && bash" | ||
|
||
dev: | ||
npm run dev |