From 135c1fcd9bad5a5612ced133253e3c805b6e1d4c Mon Sep 17 00:00:00 2001 From: Nikita Stelmashenko Date: Wed, 22 Jan 2025 18:38:49 +0300 Subject: [PATCH] Fix ubuntu build script A binary is not being build because of incorrect current directories, so I fixed cd arguments. Also I add -y argument to apt to make the script non-interactive. --- LICENSE.md | 2 +- pack/buildUbuntu.sh | 21 +++++++-------------- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index 4722beb8b..2d7800c59 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,7 +1,7 @@ MIT License Copyright (c) 2018 Scientific Toolworks, Inc. -Copyright (c) 2021-2024 Gittyup contributors +Copyright (c) 2021-2025 Gittyup contributors 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/pack/buildUbuntu.sh b/pack/buildUbuntu.sh index 2eff79de4..25a8f8c8e 100755 --- a/pack/buildUbuntu.sh +++ b/pack/buildUbuntu.sh @@ -1,14 +1,9 @@ -sudo apt install build-essential libgl1-mesa-dev -sudo apt install cmake -sudo apt install libgit2-dev -sudo apt install cmark -sudo apt install git -sudo apt install libssh2-1-dev -sudo apt install openssl -sudo apt install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools -sudo apt install qttools5-dev -sudo apt install ninja-build -cd ../../.. +#!/bin/bash + +sudo apt update +sudo apt install -y build-essential libgl1-mesa-dev cmake libgit2-dev cmark git \ + libssh2-1-dev openssl qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools qttools5-dev ninja-build +cd .. git fetch git submodule init git submodule update @@ -17,10 +12,8 @@ git checkout deps cd dep/openssl/openssl/ ./config -fPIC make -cd +cd - mkdir -vp build/release cd build/release cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ../.. ninja - -