zsign icon indicating copy to clipboard operation
zsign copied to clipboard

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

Open mega6453 opened this issue 1 year ago β€’ 22 comments

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

mega6453 avatar Oct 09 '23 10:10 mega6453

@zhlynn

mega6453 avatar Oct 09 '23 10:10 mega6453

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

JBsite12 avatar Oct 18 '23 12:10 JBsite12

@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

mega6453 avatar Oct 25 '23 14:10 mega6453

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 avatar Oct 28 '23 14:10 ghost

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

ghost avatar Nov 10 '23 09:11 ghost

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

mega6453 avatar Nov 10 '23 09:11 mega6453

@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

JBsite12 avatar Nov 12 '23 04:11 JBsite12

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

mega6453 avatar Nov 13 '23 05:11 mega6453

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

JBsite12 avatar Nov 13 '23 17:11 JBsite12

@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

ghost avatar Nov 13 '23 18:11 ghost

Mine should work (and has binaries in GH actions)

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

mega6453 avatar Feb 27 '24 12:02 mega6453

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

mega6453 avatar Feb 27 '24 12:02 mega6453

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

Dadoum avatar Feb 27 '24 18:02 Dadoum

@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 avatar Mar 01 '24 12:03 mega6453

@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 avatar Mar 01 '24 14:03 mega6453

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

mega6453 avatar Mar 01 '24 15:03 mega6453

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 ;) ).

Dadoum avatar Mar 01 '24 21:03 Dadoum

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

mega6453 avatar Mar 01 '24 22:03 mega6453

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

Dadoum avatar Mar 01 '24 22:03 Dadoum

Got it thanks.. will try today..

mega6453 avatar Mar 01 '24 22:03 mega6453

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

Dadoum avatar Mar 01 '24 22:03 Dadoum