File tree 1 file changed +25
-2
lines changed
1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -69,11 +69,34 @@ jobs:
69
69
70
70
# artifacts:
71
71
72
- - name : 📦 Install & Gather executables
73
- id : exes
72
+ - name : 📦 Install the executable
73
+ id : install
74
74
run : |
75
75
stack install
76
76
cp ~/.local/bin/als .
77
+
78
+ - name : 📦 Some linker shit
79
+ id : link
80
+ env :
81
+ ICU_VER : ' 69'
82
+ ICU_DIR : ' /usr/local/opt/icu4c/lib'
83
+ run : |
84
+ # Change the path to the dynamic library icu4c to the run-time search path:
85
+ #
86
+ # 1. the same directory of executable, i.e. @executable_path
87
+ # 2. @executable_path/../lib
88
+ # 3. the default location of system-wide icu4c installed by homebrew, ie. /usr/local/opt/icu4c/lib
89
+ #
90
+ mkdir lib
91
+ cp ${ICU_DIR}/libicuuc.${ICU_VER}.dylib ${ICU_DIR}/libicui18n.${ICU_VER}.dylib ${ICU_DIR}/libicudata.${ICU_VER}.dylib lib
92
+ install_name_tool -change ${ICU_DIR}/libicuuc.${ICU_VER}.dylib @rpath/libicuuc.${ICU_VER}.dylib als
93
+ install_name_tool -change ${ICU_DIR}/libicui18n.${ICU_VER}.dylib @rpath/libicui18n.${ICU_VER}.dylib als
94
+ install_name_tool -add_rpath @executable_path -add_rpath @executable_path/../lib -add_rpath ${ICU_DIR} als
95
+ otool -L als
96
+
97
+ - name : 📦 Zip the executable
98
+ id : zip
99
+ run : |
77
100
zip -r als als
78
101
mv als.zip als-macos.zip
79
102
You can’t perform that action at this time.
0 commit comments