Commit Graph

25 Commits

Author SHA1 Message Date
BlackDex
12568dfbb4
Add build env's
Sometimes you want to set specific environment variables during build.
For example, on some systems nodejs needs some extra options to be able to run correctly on low memory systems.
To make sure this will be loaded and works on both scripts and Dockerfile, you can now create a `.build_env` file.
This `.build_env` file should contain all the variables (including an export command) you want to expose during build time.

The template file has a nodejs example.

Closes #183

Signed-off-by: BlackDex <black.dex@gmail.com>
2024-11-04 22:28:25 +01:00
Mathijs van Veluw
b20d398f5a
Merge branch 'master' into feature/build 2024-08-07 21:05:15 +02:00
Stefan Melmuk
7b86da5d58
build without the bitwarden_license/ directory 2024-08-06 22:00:08 +02:00
Timshel
08c92e2732 Use checkout and build scripts in docker 2024-08-02 14:15:04 +02:00
Stefan Melmuk
b4b89efdf6
normalize commit id length 2024-03-09 10:55:24 +01:00
Stefan Melmuk
9b23b36860
make it work with docker 2024-03-09 10:55:24 +01:00
Stefan Melmuk
21ffad4495
create script to replace svg icons 2024-03-09 10:55:22 +01:00
Sandro
5367c2447d
Fix applying latest patch if patches is a symlink 2024-01-17 00:47:43 +01:00
BlackDex
0277844cf9
Misc changes
Some misc changes.
- Moved old patch files to a `legacy` sub-folder
- If a legacy patch is used, show a warning and pause for 10 seconds
- Updated the checkout and Dockerfile so both use the same way of
  cloning the Bitwarden/client repo
- Updated the `patch_web_vault.sh` script to try and detect the vault version
- Added two new make commands to prepare and release a new version
- Added a `.env` feature for the `Makefile` to set some defaults
  Mainly used for using either `docker` or `podman` and for the GitHub
  Release script to have a predefined GPG user/key
2023-12-18 17:09:47 +01:00
Kevin P. Fleming
3afdaa61ed Upstream repository default branch is now called 'main'. 2023-12-16 07:17:35 -05:00
Stefan Melmuk
e94fdf1d38
don't run npm audit fix
currently it fails (because it can't resolve the $tailwindcss reference)
but also in general we might not want to depend on automatic updating the
dependencies without checking them first.
2023-08-31 19:56:08 +02:00
Stefan Melmuk
2f513f32ea
add support for annotated tags 2023-05-11 21:26:07 +02:00
BlackDex
b6a7cdb5e5
Moved images into directory structure
As requested in #122 moved all the image files into a correct directory structure.
This does seem a bit logical indeed. And it makes it more clear where
which replaced image goes. It also makes the `cp` command less error prone.

Fixes #122
2023-03-28 17:49:13 +02:00
Helmut K. C. Tessarek
5b326ecb4f
remove v from version string 2023-02-21 20:47:34 -05:00
BlackDex
34c0540ec9
Make scripts compatible with macOS/BSD
All the scripts used by this repo were more focused on Linux based systems.
They did not work on macOS or other BSD based systems because of flags
or commands which are not available.

This PR resolves those items by adjusting the failed commands so they
work on both Linux and macOS/BSD systems.

Fixes #112
2023-02-15 22:19:44 +01:00
Stefan Melmuk
9c252b069c
change the favicon.ico 2023-01-11 08:30:48 +01:00
Stefan Melmuk
dedd6bbe45
make backup of previous web-vault
currently if `builds/web-vault` exists the script will copy the newly
built web-vault to `builds/web-vault/web-vault`.

include suggestions from code review

Co-authored-by: BlackDex <black.dex@gmail.com>
2022-12-18 00:00:20 +01:00
Stefan Melmuk
cc7af21968
change pageTitle to Vaultwarden and add favicons 2022-12-08 23:15:50 +01:00
BlackDex
87f3999a0b
Update to web-vault v2022.11.1
This PR updates the web-vault to v2022.11.1
It also replaces the main logo and top left icon to indicate it is
Vaultwarden.

And the footer text has been change to `Vaultwarden (unofficial Bitwarden® server)`

This hopefully helps causing less confusion.
2022-12-01 00:17:56 +01:00
Stefan Melmuk
a21f082591
don't stash the node_modules folder
currently, if you built the web-vault the `node_modules` folder is
stashed which takes a long time. since this is an ignored folder and we
use `npm ci` to build the web-vault we don't really need to stash it.

`npm ci` will always start with a clean build anyway.
see https://docs.npmjs.com/cli/v8/commands/npm-ci
2022-11-02 14:21:43 +01:00
Stefan Melmuk
9d8005c6b9
exclude package-lock.json from generated patches 2022-10-07 05:36:32 +02:00
BlackDex
b9d00839d7
Update web-vault to v2022.8.1
This version has a new feature which isn't supported yet by vaultwarden.
It shouln't be that hard to add this functionality i think.

You can now revoke and restore user access to an org.
2022-08-20 16:39:51 +02:00
BlackDex
83b5ae5dc5
Update web-vault to v2022.6.2
- Updated to the latest released web-vault.
- Made some small changes to the checkout script to catch tags like
  `2022.6.2` and `v2022.6.2` and convert them to `web-v2022.6.2` instead.
2022-07-15 16:40:21 +02:00
BlackDex
aabcc2737f
Update web-vault to v2022.6.0
Updated the web-vault to the latest released version.
This version is also using the new repo `bitwarden/clients` instead of the old `bitwarden/web`.
All files have been changed where needed.
2022-06-29 15:49:38 +02:00
BlackDex
6529f1dab0
Update web-vault to v2022.05.0 and misc changes
- Updated web-vault to v2022.05.0
- Made several changes to the build scripts for ease of building/patching etc...
  You can now run `make checkout` to pull/update the repo to the wanted version
  There is also a `make patch-web-vault` to patch the repo
  A `make generate-patch` to create a patch file from the current changes
  And many more changes
2022-06-02 22:10:28 +02:00