zhlynn / zsign

Maybe it is the most quickly codesign alternative for iOS12+, cross-platform ( macOS, Linux , Windows ), more features.
BSD 3-Clause "New" or "Revised" License
1.24k stars 378 forks source link

Can u provide a zsign.exe for windows to use directly? #304

Open mega6453 opened 11 months ago

mega6453 commented 11 months ago

Facing issues while downloading or installing the openssl in the windows.. So, Can u provide a zsign.exe for windows to use directly?

mega6453 commented 11 months ago

@zhlynn

JBsite12 commented 11 months ago

https://jbsite.kr/zsign.exe I built it successfully, but I don't know how to use it

mega6453 commented 10 months ago

@JBsite12 I also built it. but not working.. even yours also not working.. Thanks anyway..

You can try this running in cmd as follows:

zsign.exe -k cert.pem -m qa.mobileprovision -z 9 -o signedipa.ipa original.ipa

ghost commented 10 months ago

https://jbsite.kr/zsign.exe I built it successfully, but I don't know how to use it

doesnt work when using this command

zsign.exe -k cert.pem -m qa.mobileprovision -z 9 -o signedipa.ipa original.ipa

ghost commented 10 months ago

i compiled it on ubuntu and it seems to work well, just follow the tutorial then go to zsign/build then do ./zsign (args)

mega6453 commented 10 months ago

@Xytriza Yes it works in ubuntu. But this topic is for windows.

JBsite12 commented 10 months ago

@mega6453 I have successfully signed using WSL.

apt get install git sudo apt-get update -y sudo apt-get install -y checkinstall

sudo apt-get install git git clone https://github.com/zhlynn/zsign.git; cd zsign && chmod +x INSTALL.sh && ./INSTALL.sh` image

mega6453 commented 10 months ago

@JBsite12 yes it works in wsl.. but i want to use zsign exe

JBsite12 commented 10 months ago

@mega6453 I can't be bothered to turn on vmware I'm gonna settle for this

ghost commented 10 months ago

@Xytriza Yes it works in ubuntu. But this topic is for windows.

im aware, just wanted to point it out that it works well on ubuntu

Dadoum commented 6 months ago

Mine should work (and has binaries in GH actions)

mega6453 commented 6 months ago

Mine should work (and has binaries in GH actions)

Thanks @Dadoum , I'll check and update..

mega6453 commented 6 months ago

@Dadoum The artifacts seem expired which is in the actions.. can you re build it please?

Dadoum commented 6 months ago

Oh I forgot to merge upstream πŸ˜… that's originally why I came back to the repo. It should be building

mega6453 commented 6 months ago

@Dadoum i tried the exe.. Getting error while signing an ipa file.. Any suggestion? What am i doing wrong?

When signing IPA file: C:\Users\mc\Desktop\profiles>zsign.exe -k privkey.pem -m dev.mobileprovision -z 9 -o output.ipa wda.ipa

Unzip: C:\Users\mc\Desktop\profiles\wda.ipa (3.06 MB) -> C:\Users\mc\AppData\Local\Temp\zsign_folder_18446744072897097630 ... 'unzip' is not recognized as an internal or external command, operable program or batch file. Unzip OK! (0.132s, 131867us) Can't Find App Folder! C:\Users\mc\AppData\Local\Temp\zsign_folder_18446744072897097630 Signed Failed! (0.001s, 1007us) Can't Find Payload Directory!

When signing .app : C:\Users\mc\Desktop\profiles>zsign.exe -k dev.p12 -p passwordhere -m dev.mobileprovision -o output.ipa WebDriverAgentRunner-Runner.app

Signing: C:\Users\mc\Desktop\profiles\WebDriverAgentRunner-Runner.app ... AppName: WebDriverAgentRunner-Runner BundleId: com.facebook.WebDriverAgentRunner.xctrunner BundleVer: 1 TeamId: 1234567890 SubjectCN: iPhone Developer: Meganathan (xxxxxxx) ReadCache: NO SignFolder: PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework, (WebDriverAgentLib) ←[33m>>> Can't Find CodeSignature Segment! ←[0m←[33m>>> Realloc CodeSignature Space... ←[0m←[33m>>> Success! ←[0m>>> SignFolder: PlugIns/WebDriverAgentRunner.xctest, (WebDriverAgentRunner) ←[33m>>> Can't Find CodeSignature Segment! ←[0m←[33m>>> Realloc CodeSignature Space... ←[0m←[33m>>> Success! ←[0m>>> SignFile: Frameworks/libXCTestSwiftSupport.dylib SignFolder: WebDriverAgentRunner-Runner.app, (WebDriverAgentRunner-Runner) ←[32m>>> Signed OK! (0.418s, 418002us) ←[0m←[31m>>> Can't Find Payload Directory! ←[0m

mega6453 commented 6 months ago

@Dadoum Can you download the WebDriverAgentrunner zip from below repo and export the .app and try signing it using zsign exe file?

https://github.com/appium/WebDriverAgent

mega6453 commented 6 months ago

Looks like zip and unzip commands are not included in exe or it's included and it's not recognized by cmd.

Dadoum commented 6 months ago

No they are not, I don't know which tool installs zip and unzip, but you could download those executables from internet and put it in the same folder I guess. At worst just use my tool to sign ipas, it doesn't handle P12, it doesn't have the same command line interface and is a bit buggy sometimes but it should be okay enough and should sign files faster (and it doesn't require OpenSSL or does any assumption on your system ;) ).

mega6453 commented 6 months ago

Sideloader repo ? I don't see a windows release for that..

Dadoum commented 6 months ago

Yet again it's in Actions. Here it's because I am not yet satisfied with a GUI to make a release. Here is a CLI link for Windows https://github.com/Dadoum/Sideloader/actions/runs/7381787246 *

build is not working... I posted my personal build that work but I am puzzled

mega6453 commented 6 months ago

Got it thanks.. will try today..

Dadoum commented 6 months ago

Don't hesitate to report issues, it's still beta software…