Skip to content

Commit

Permalink
fix: base64 platform check
Browse files Browse the repository at this point in the history
  • Loading branch information
storytellerF committed Dec 8, 2024
1 parent 40a9eba commit 9129d9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 5 additions & 1 deletion scripts/build_scripts/build-service-on-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ mkdir -p "build/outputs/apk/release"

mv composeApp/build/outputs/apk/release/*.apk "build/outputs/apk/release/s-$FLAVOR.apk"

echo "$REMOTE_ENCODED_CERT" | base64 --decode -o remote.pem
if [ "$(uname)" = "Darwin" ]; then
echo "$REMOTE_ENCODED_CERT" | base64 --decode -o remote.pem
else
echo "$REMOTE_ENCODED_CERT" | base64 --decode > remote.pem
fi

HOST_TYPE=local \
./scripts/service_scripts/build-service.sh mini ubuntu@acommunity.link ./remote.pem "sudo bash ./start.sh"
2 changes: 0 additions & 2 deletions server/src/test/kotlin/CommunityTest.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import com.perraco.utils.SnowflakeFactory
import com.storyteller_f.DatabaseFactory
import com.storyteller_f.a.client_lib.*
import com.storyteller_f.buildBackendFromEnv
import com.storyteller_f.readEnv
import com.storyteller_f.shared.hmacSign
import com.storyteller_f.shared.hmacVerify
import com.storyteller_f.shared.model.TopicContent
Expand Down

0 comments on commit 9129d9b

Please sign in to comment.