Skip to content
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

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

Open
mega6453 opened this issue Oct 9, 2023 · 22 comments
Open

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

mega6453 opened this issue Oct 9, 2023 · 22 comments

Comments

@mega6453
Copy link

mega6453 commented Oct 9, 2023

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

@mega6453
Copy link
Author

mega6453 commented Oct 9, 2023

@zhlynn

@JBsite12
Copy link

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

@mega6453
Copy link
Author

mega6453 commented Oct 25, 2023

@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
Copy link

ghost commented Oct 28, 2023

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
Copy link

ghost commented Nov 10, 2023

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
Copy link
Author

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

@JBsite12
Copy link

JBsite12 commented Nov 12, 2023

@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
Copy link
Author

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

@JBsite12
Copy link

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

@ghost
Copy link

ghost commented Nov 13, 2023

@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
Copy link

Dadoum commented Feb 27, 2024

@mega6453
Copy link
Author

mega6453 commented Feb 27, 2024

Mine should work (and has binaries in GH actions)

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

@mega6453
Copy link
Author

mega6453 commented Feb 27, 2024

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

@Dadoum
Copy link

Dadoum commented Feb 27, 2024

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

@mega6453
Copy link
Author

mega6453 commented Mar 1, 2024

@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
Copy link
Author

mega6453 commented Mar 1, 2024

@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
Copy link
Author

mega6453 commented Mar 1, 2024

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

@Dadoum
Copy link

Dadoum commented Mar 1, 2024

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
Copy link
Author

mega6453 commented Mar 1, 2024

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

@Dadoum
Copy link

Dadoum commented Mar 1, 2024

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
Copy link
Author

mega6453 commented Mar 1, 2024

Got it thanks.. will try today..

@Dadoum
Copy link

Dadoum commented Mar 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants