Skip to content

Commit a06bd1f

Browse files
Finished work on release workflows
1 parent a7159dc commit a06bd1f

19 files changed

+873
-192
lines changed

.github/workflows/linuxRelease.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ on:
99
type: string
1010
jobs:
1111
call_workflow:
12-
uses: febiosoftware/febio-workflows/.github/workflows/linux-release.yml@develop
12+
uses: febiosoftware/febio-workflows/.github/workflows/linux-release.yml@ci/develop
1313
with:
1414
febioVer: ${{inputs.febioVer}}
1515
fbsVer: ${{inputs.fbsVer}}
16-
aws-ami-id: ami-0590ebdb5afffb782
16+
aws-ami-id: ami-0b97a2de37c43b9ba
1717
aws-sg-id: sg-0ca7912782cf1538b
1818
secrets: inherit

.github/workflows/macOSRelease.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
workflow_dispatch:
3+
inputs:
4+
fbsVer:
5+
required: true
6+
type: string
7+
febioVer:
8+
required: true
9+
type: string
10+
jobs:
11+
call_workflow:
12+
uses: febiosoftware/febio-workflows/.github/workflows/macos-release.yml@ci/develop
13+
with:
14+
febioVer: ${{inputs.febioVer}}
15+
fbsVer: ${{inputs.fbsVer}}
16+
secrets: inherit

.github/workflows/windowsRelease.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
on:
2+
workflow_dispatch:
3+
inputs:
4+
fbsVer:
5+
required: true
6+
type: string
7+
febioVer:
8+
required: true
9+
type: string
10+
jobs:
11+
call_workflow:
12+
uses: febiosoftware/febio-workflows/.github/workflows/windows-release.yml@ci/develop
13+
with:
14+
febioVer: ${{inputs.febioVer}}
15+
fbsVer: ${{inputs.fbsVer}}
16+
aws-ami-id: ami-0b18c665dbe9efa75
17+
aws-sg-id: sg-0ca7912782cf1538b
18+
secrets: inherit

CMakeLists.txt

+11-17
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,6 @@ endforeach(name)
426426

427427
##### Add binaries #####
428428

429-
# Linking the Qt libraries also pulls in the include files
430-
link_libraries(Qt6::Core Qt6::Widgets Qt6::Gui Qt6::Network Qt6::OpenGL Qt6::OpenGLWidgets)
431-
432429
# set the name of the executable
433430
if (WIN32)
434431
set(FBS_BIN_NAME FEBioStudio2)
@@ -519,6 +516,17 @@ endif()
519516

520517
##### Link Libraries #####
521518

519+
# Linking the Qt libraries also pulls in the include files
520+
target_link_libraries(${FBS_BIN_NAME} Qt6::Core Qt6::Widgets Qt6::Gui Qt6::Network Qt6::OpenGL Qt6::OpenGLWidgets)
521+
target_link_libraries(CUILib Qt6::Widgets)
522+
target_link_libraries(GLWLib Qt6::Gui Qt6::OpenGLWidgets)
523+
target_link_libraries(PostGL Qt6::Gui)
524+
target_link_libraries(GLLib Qt6::OpenGL Qt6::OpenGLWidgets)
525+
target_link_libraries(FSCore Qt6::Core)
526+
target_link_libraries(MeshIO Qt6::Core)
527+
target_link_libraries(MeshTools Qt6::Core)
528+
target_link_libraries(ImageLib Qt6::Core Qt6::Gui)
529+
522530
if(WIN32)
523531
elseif(APPLE)
524532
else()
@@ -700,18 +708,4 @@ if(BUILD_UPDATER)
700708
findLib(FEBio_LIB_DIR XML_LIB xml)
701709

702710
target_link_libraries(FEBioStudioUpdater Qt6::Widgets Qt6::Network ${XML_LIB} ${LIBZIP_LIB})
703-
704-
if (APPLE)
705-
set(MACOS_SHARED_BINARIES bin/FEBioStudioUpdater bin/mvUtil PARENT_SCOPE)
706-
endif()
707-
708-
if(APPLE)
709-
message(STATUS "MACOS_SHARED_BINARIES: ${MACOS_SHARED_BINARIES}")
710-
711-
add_custom_command(
712-
TARGET ${FBS_BIN_NAME} POST_BUILD
713-
COMMAND ${CMAKE_COMMAND} -E copy
714-
${MACOS_SHARED_BINARIES}
715-
$<TARGET_FILE_DIR:${FBS_BIN_NAME}> ./bin/${FBS_BIN_NAME}.app/Contents/MacOS)
716-
endif()
717711
endif()

FindDependencies.cmake

+3-6
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,7 @@ elseif(APPLE)
440440
find_library(SSL_LIB ssl
441441
PATHS /opt/openssl /usr/local/opt/ $ENV{HOME}/* $ENV{HOME}/*/*
442442
PATH_SUFFIXES "lib" "openssl/lib" "build" "build/lib" "Release" "Debug" "homebrew/lib"
443-
DOC "OpenSSL library path"
444-
NO_DEFAULT_PATH)
443+
DOC "OpenSSL library path")
445444
else()
446445
find_path(SSL_INC openssl/aes.h
447446
PATHS /opt/openssl /usr/local/opt/ $ENV{HOME}/* $ENV{HOME}/*/*
@@ -584,13 +583,11 @@ elseif(APPLE)
584583
find_path(FFMPEG_INC libavformat/avformat.h
585584
PATHS /usr/local/homebrew /usr/local/opt/ /opt/ffmpeg $ENV{HOME}/* $ENV{HOME}/*/*
586585
PATH_SUFFIXES "include" "ffmpeg/include" "build" "build/include" "homebrew/include"
587-
DOC "FFMPEG include directory"
588-
NO_DEFAULT_PATH)
586+
DOC "FFMPEG include directory")
589587
find_library(FFMPEG_LIB avformat
590588
PATHS /usr/local/homebrew /usr/local/opt/ /opt/ffmpeg $ENV{HOME}/* $ENV{HOME}/*/*
591589
PATH_SUFFIXES "lib" "ffmpeg/lib" "build" "build/lib" "Release" "Debug" "homebrew/lib"
592-
DOC "FFMPEG library path"
593-
NO_DEFAULT_PATH)
590+
DOC "FFMPEG library path")
594591
else()
595592
find_path(FFMPEG_INC libavformat/avformat.h
596593
PATHS /usr/local/x86_64 /usr/include/ /opt/ffmpeg $ENV{HOME}/* $ENV{HOME}/*/*

Updater/mvUtil.cpp

+23-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <string.h>
44
#include <sys/stat.h>
55
#include <iostream>
6+
#include <fstream>
67

78
#ifdef WIN32
89
#include <Windows.h>
@@ -24,6 +25,18 @@ int main(int argc, char* argv[])
2425

2526
if((argc - start) % 2 != 0) return -1;
2627

28+
std::ofstream myfile;
29+
myfile.open ("mvUtil.log");
30+
31+
myfile << "Args:" << std::endl;
32+
33+
for(int index = 0; index < argc; index++)
34+
{
35+
myfile << argv[index] << std::endl;
36+
}
37+
38+
myfile << std::endl;
39+
2740
for (int index = start; index < argc; index += 2)
2841
{
2942

@@ -34,7 +47,11 @@ int main(int argc, char* argv[])
3447
int n = 0;
3548
while (std::remove(argv[index + 1]) != 0)
3649
{
37-
std::cout << "Let's try again\n";
50+
// If the file just doesn't exist, break
51+
if(errno == ENOENT) break;
52+
53+
myfile << "Failed to delete " << argv[index + 1] << ". Error: " << errno << std::endl;
54+
3855
_sleep(500);
3956
n++;
4057
if (n > 10) break;
@@ -49,15 +66,17 @@ int main(int argc, char* argv[])
4966
#endif
5067
}
5168

52-
char command[100];
69+
myfile.close();
70+
71+
char command[1000];
5372

5473
if(dev)
5574
{
56-
sprintf(command, "%s --noUpdaterCheck --devChannel", argv[1]);
75+
sprintf(command, "\"%s\" --noUpdaterCheck --devChannel", argv[1]);
5776
}
5877
else
5978
{
60-
sprintf(command, "%s --noUpdaterCheck", argv[1]);
79+
sprintf(command, "\"%s\" --noUpdaterCheck", argv[1]);
6180
}
6281

6382
std::system(command);

0 commit comments

Comments
 (0)