Skip to content

Commit

Permalink
fix email app
Browse files Browse the repository at this point in the history
  • Loading branch information
gogo2464 committed Jan 29, 2024
1 parent b75a1cb commit a1ea4d5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
15 changes: 11 additions & 4 deletions apps/freenet-email-app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ AFT_GENERATOR := $(FREENET_DIR)/modules/antiflood-tokens/delegates/token-generat
IDENTITY_DELEGATE := $(FREENET_DIR)/modules/identity-management
WEB_DIR_SRC := $(FREENET_DIR)/apps/freenet-email-app/web/src

IDENTITY_DELEGATE_PRIVATE_KEY := identity-manager-key.private.pem
PATH_TO_IDENTITY_DELEGATE := $(IDENTITY_DELEGATE)/build/$(IDENTITY_DELEGATE_PRIVATE_KEY)


ifeq ($(CARGO_TARGET_DIR),)
$(error CARGO_TARGET_DIR is not set)
endif
Expand All @@ -31,10 +35,13 @@ build-tool:
cargo install --force --path $(FREENET_DIR)/crates/fdev

generate-id-manager-key:
FILE="$(IDENTITY_DELEGATE)/build/identity-manager-key.private.pem"
echo $$FILE ;
ifneq ("$(wildcard $(FILE))","")
cd $(IDENTITY_DELEGATE) && cargo run -- --path "$(IDENTITY_DELEGATE)/build/" ;
echo "test 3"
F=$(wildcard $(PATH_TO_IDENTITY_DELEGATE))
echo "test 3"
ifeq ($$F, $(IDENTITY_DELEGATE_PRIVATE_KEY))
echo "file $(IDENTITY_DELEGATE_PRIVATE_KEY) already exists. Skipping." ;
else
cd $(IDENTITY_DELEGATE) && cargo run -- --path "$(IDENTITY_DELEGATE)/build/" ;
endif

build-inbox:
Expand Down
9 changes: 4 additions & 5 deletions build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ cd ../.. &&
cargo install --path crates/core --force &&
cargo install --path crates/fdev --force &&
cd ./modules/identity-management/ && make build &&
cd ../antiflood-tokens/ &&
rm Cargo.lock ;
make build &&
cd ../../apps/freenet-microblogging && make build &&
cd ../../apps/freenet-email-app && make build
cd ../antiflood-tokens/ && rm Cargo.lock ; make build &&
cd ../../ &&
make -C ./apps/freenet-microblogging build &&
&& make -C ./apps/freenet-email-app build

0 comments on commit a1ea4d5

Please sign in to comment.