-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Support for macOS #441
Changes from 75 commits
acb57f1
f3496a0
f5af934
97ba6a4
91d89f7
e495961
3bf32d1
44eb8d4
f3a66ea
686e5b3
acebb20
780ed6d
401a344
a87a5b9
91da461
9e082fd
ba882b2
8ab2a0d
dbacf38
f7b7de7
4177721
508b5c7
447b28c
831cd63
1232e00
8b58050
0e0577d
094c2b0
01d5e06
c17e3da
d533319
d066fbf
54f1bbf
de4f2fb
33bb174
b80d1f1
5205363
8fd50af
09025a3
9c6f10f
8f635c2
5fbed02
d22c6b1
941c09b
af6fc6f
0c8cc18
b7e7032
db59329
9b9ec2b
67a8ca0
361a2be
86975fe
554e85d
5302776
15dbb06
fb7ce12
2bf7b3e
5bb2605
9694177
a109535
784bb74
cd89807
7517785
5205c25
dd47590
1be6ae7
3900b6b
2260137
29a7820
f2bd020
253db5a
e1cd6c9
caf1c25
888c074
fba7a89
7e149d6
a7c2d2c
5001da6
7e20272
3693992
a514d23
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,5 +119,39 @@ pipeline { | |
} | ||
} | ||
} | ||
stage ('Build macOS') { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For merging purposes this just verifies that building works and does not do any distribution. |
||
agent { | ||
label "SoH-Mac-Builders" | ||
} | ||
steps { | ||
checkout([ | ||
$class: 'GitSCM', | ||
branches: scm.branches, | ||
doGenerateSubmoduleConfigurations: scm.doGenerateSubmoduleConfigurations, | ||
extensions: scm.extensions, | ||
userRemoteConfigs: scm.userRemoteConfigs | ||
]) | ||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { | ||
sh ''' | ||
cp ../../ZELOOTD.z64 OTRExporter/baserom_non_mq.z64 | ||
|
||
cd soh | ||
make setup -j4 DEBUG=0 CC=gcc-12 CXX=g++-12 | ||
make -j4 DEBUG=0 CC=gcc-12 CXX=g++-12 | ||
|
||
make -j4 appbundle | ||
|
||
mv ../README.md readme.txt | ||
7z a soh-mac.7z soh.app readme.txt | ||
''' | ||
} | ||
archiveArtifacts artifacts: 'soh/soh-mac.7z', followSymlinks: false, onlyIfSuccessful: true | ||
} | ||
post { | ||
always { | ||
step([$class: 'WsCleanup']) // Clean workspace | ||
} | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,7 +100,7 @@ static int FillWritableHandle( | |
pFileEntry->dwFlags = dwFlags | MPQ_FILE_EXISTS; | ||
|
||
// Initialize the file time, CRC32 and MD5 | ||
assert(sizeof(hf->hctx) >= sizeof(hash_state)); | ||
//assert(sizeof(hf->hctx) >= sizeof(hash_state)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't fully understand the changes done to StormLib - but now There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @NEstelami perhaps you have some insights here? I believe you were the one that made the changes to StormLib, right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For some reason I didn't get a notification for this. There were only two real changes to StormLib - an optimization to make generating the OTRs several seconds faster, and additional checks when files are looked up in order to make |
||
memset(pFileEntry->md5, 0, MD5_DIGEST_SIZE); | ||
md5_init((hash_state *)hf->hctx); | ||
pFileEntry->dwCrc32 = crc32(0, Z_NULL, 0); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-jx no longer works for me for make setup. Does it work for you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does! But no code that we change would affect that, that is a parameter to the
make
commandThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, it just worked now :-S