From a1dae7619a1783855937ffbc19e079415bc0775c Mon Sep 17 00:00:00 2001 From: Gustavo Freze Date: Mon, 6 Jan 2025 23:13:04 -0300 Subject: [PATCH] fix: Fixes execution of composer scripts and updates dependencies. --- LICENSE | 2 +- Makefile | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/LICENSE b/LICENSE index 98fb938..33586a8 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Tiny Blocks +Copyright (c) 2025 Tiny Blocks Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Makefile b/Makefile index 49b4436..cc9f934 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,18 @@ +ifeq ($(OS),Windows_NT) + PWD := $(shell cd) +else + PWD := $(shell pwd -L) +endif + +ARCH := $(shell uname -m) +PLATFORM := + +ifeq ($(ARCH),arm64) + PLATFORM := --platform=linux/amd64 +endif + PHP_IMAGE = gustavofreze/php:8.3 -DOCKER_RUN = docker run -u root --rm -it --network=tiny-blocks --name test-lib \ +DOCKER_RUN = docker run ${PLATFORM} -u root --rm -it --network=tiny-blocks --name test-lib \ -v ${PWD}:/app \ -v ${PWD}/tests/Integration/Database/Migrations:/test-adm-migrations \ -v /var/run/docker.sock:/var/run/docker.sock \