Commit Graph

47 Commits

Author SHA1 Message Date
adbenitez 30ca11cd36 Merge remote-tracking branch 'upstream/main' 2023-12-09 23:25:56 -05:00
B. Petersen 24b7a4fed8 adapt ./scripts/grep-strings.sh to updated repos 2023-12-06 14:07:34 +01:00
adbenitez c5da934fc1 don't build 64bit architectures 2023-11-05 22:06:13 +01:00
link2xt 35a542b574 build: update to Rust 1.72.0 2023-08-26 00:48:35 +00:00
Paul van Leeuwen e7aaebf9ff Update ndk-make.sh initial comment to suggest an app for determining CPU architecture 2023-07-13 10:43:06 +02:00
link2xt 2849555088 Compile native library with -fvisibility=hidden
This avoids exposing the symbols of the used libraries like SQLite3
and reduces the library size.
2023-06-27 22:36:07 +00:00
link2xt e43aeb0d5b chore: update rust-toolchain to 1.70.0 2023-06-27 16:29:54 +00:00
link2xt 38a716a63b Reduce libnative-utils.so size 2023-06-27 13:55:15 +00:00
bjoern 5df31105ce ./update-core.sh accepts tags as well as branches (#2583)
* ./update-core.sh accepts tags as well as branches

* stop update.core.sh on all errors
2023-06-07 11:50:59 +02:00
link2xt 4f468a4b8f Add DcJsonrpcInstance class 2023-04-22 17:58:03 +00:00
B. Petersen d2901e0a47 search for translation errors in ./res/, not in intermediate files 2023-04-06 21:35:50 +02:00
link2xt fa7812ab0d Remove workaround for Rust built against r22b NDK
Rust 1.68.0 targets NDK r25, so the workaround is no longer needed.
2023-04-06 12:49:00 +00:00
link2xt f6562c412f Update to Rust 1.68.2 2023-04-06 12:49:00 +00:00
bjoern da517bdc9b prepare 1.36.2 (#2535)
* update deltachat-core-rust to 'ref: More logging for ongoing and get_backup (#4289)' of branch 'stable-1.112'

* update changelog for 1.36.2

* bump version to 1.36.2

* add some feedback at end of upload-release script, similar to upload-beta
2023-04-05 15:41:15 +02:00
link2xt 03a98f5e78 scripts/ndk-make.sh: enable debug builds explicitly with --debug
Currently F-Droid builds split architecture .apks
by invoking ndk-make.sh with architecture argument.
This results in debug builds of the core.

This change makes debug builds explicit.
2023-03-07 10:46:58 +00:00
bjoern 08bb30eb3a add codespell, fix typos (#2490)
* add script to call codespell utility

* fix typos found by scripts/codespell.sh
2023-03-06 13:44:46 +01:00
link2xt 1eb04a8bcb scripts/ndk-make.sh: set ranlib path 2023-03-04 01:12:06 +00:00
link2xt 86af180095 scripts/ndk-make.sh: remove CFLAGS setting
Setting __ANDROID_API__ manually causes
  '__ANDROID_API__' macro redefined [-Werror,-Wmacro-redefined]
when compiling the `ring` crate dependency.

TARGET_CC wrapper should set necessary variables itself.

See similar issue in the `ring` bugtracker for explanation:
https://github.com/briansmith/ring/issues/1519
2023-03-04 00:13:17 +00:00
link2xt 84a767dc17 scripts/ndk-make.sh: use absolute paths for TARGET_{CC,AR}
Do not assume that $PATH contains toolchain bin/
2023-03-01 00:27:25 +00:00
link2xt be8f9f1468 scripts/ndk-make.sh: export RUSTUP_TOOLCHAIN
This allows to build the core on systems without rustup.
In this case system rust is used,
but there is no error due to `+1.64.0`
being unknown argument to non-rustup cargo.
2023-03-01 00:27:25 +00:00
link2xt 8ed79c5b27 scripts/ndk-make.sh: unset RUSTFLAGS
Common way to configure `mold` is to set

    RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=/usr/bin/mold"

This breaks cross-compilation, as wrong linker is used.
2023-03-01 00:27:25 +00:00
link2xt 63fc13179b scripts/ndk-make.sh: escape grep argument
This makes `scripts/ndk-make.sh` print meaningful error.
2023-03-01 00:26:43 +00:00
bjoern 8620b85416 prepare 1.34.13 (#2472)
* update CHANGELOG for 1.34.13

* nudge outselves to drop a line about what to test

the changelog is not always sufficient for that.

* bump version to 1.34.13
2023-02-09 23:21:00 +01:00
B. Petersen ae4a725764 clarify branch name in update script 2023-02-02 14:54:00 +01:00
bjoern c4651acceb adapt ./scripts/update-core.sh to work with different branches (#2460) 2023-01-31 14:51:45 +01:00
link2xt 543a7965c2 Remove ndk-make.sh symlink to scripts/ndk-make.sh
If scripts are always called directly without symlink,
there is no need to use `realpath` which is not available
on some systems.

F-Droid builds already use scripts/ndk-make.sh:
<https://gitlab.com/fdroid/fdroiddata/blob/master/metadata/com.b44t.messenger.yml>

Same for nightly builds running on Concourse CI.
2023-01-05 18:38:20 +00:00
link2xt 2f8992a77c Use realpath for the case of running the script via symlink 2023-01-02 14:47:04 +00:00
link2xt 78aada7027 Explicitly set RUSTUP_TOOLCHAIN to 1.64.0
Core is supposed to support all Rust versions above
MSRV, there is no need to use the same toolchain for
the core across all platforms.
2022-12-30 16:32:52 +00:00
B. Petersen d72c0eebb7 use new node directory for grep-string.sh 2022-12-22 14:24:43 +01:00
link2xt 0c87742577 Make ndk-make.sh work with the standard shell 2022-12-09 17:41:26 +00:00
bjoern f2e1503b52 adapt build script for M1/M2 hosts (#2433)
* adapt build script for M1/M2 hosts

* GUI way to set up build environment, update NDK information

* more precice warning message
2022-12-04 02:01:04 +01:00
bjoern 8b308ca3be check translation for bad lineends (#2389)
`<br>` lineends are not allowed in strings.xml
and lead to compile errors as "terminating tag missing".

(adding these checks as this pop up from time to time and is easily overseen)
2022-09-30 15:36:30 +02:00
link2xt 2c49febc92 Move ndk-make.sh to scripts/
Keep symlink for backwards compatibility.
2022-08-14 17:46:03 +00:00
B. Petersen 2ac2e724a8 use download.delta.chat also for beta versions
nightlies are uploaded there anyway,
so, just everything can go there,
leaving testrun.org for other purposes.
2022-05-25 13:25:53 +02:00
missytake fba35ee936 change upload script to use mailadm.testrun.org instead of testrun.org 2022-05-24 22:09:10 +02:00
bjoern e784b01f37 make tracking core versions easier (#2152)
* nicer commit messasge on updating core

this sets the commit message for updating core module to sth. as
`update deltachat-core-rust submodule to 'prepare 1.68 (#2844)'`
instead of always the same message `update deltachat-core-rust submodule`.

this makes it easier to track changes.

* add a hint to release checklist to include the used core version
2021-11-28 20:16:14 +01:00
B. Petersen 96b38e60b5 make check-translations.sh accept escaped percent sign 2021-09-21 01:55:43 +02:00
B. Petersen ac5d8dc5d0 tweak upload-testrun script 2021-08-25 12:01:36 +02:00
B. Petersen e296fa75c9 add a script for uploading to testrun.org 2021-04-18 15:20:21 +02:00
B. Petersen 943d49ab7e adapt script to create local help to new syntax 2021-04-14 16:58:48 +02:00
B. Petersen 0efd4154ea update scripts/grep-string.sh to ignore more generated files 2021-02-06 17:32:25 +01:00
B. Petersen f99d9daa49 update translations, add a fix for unescaped '&' entity 2020-12-01 11:44:25 +01:00
B. Petersen 99f592bf68 update translations, update check-translations.sh 2020-10-30 16:09:14 +01:00
B. Petersen f05b887ce6 update translations, tweak check-translations script 2020-10-29 16:33:38 +01:00
Alexander Krotov c524543278 Fix "scrips" typo 2020-10-21 23:03:10 +03:00
B. Petersen 678385a887 move scripts to new scripts folder 2020-10-21 13:19:21 +02:00
Alexander Krotov 3b4ed28269 Add scripts/install-toolchains.sh 2020-10-21 14:02:57 +03:00