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

Update run.yml #33

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

matrakalaka
Copy link

Checking for the Correct Path: The script now checks if the Applications directory exists. If it doesn’t, it looks in Library/MobileSubstrate/DynamicLibraries or other relevant paths depending on where the files are located in the .deb. Fail Gracefully: If no appropriate directory is found, the script exits with a message indicating that no application files were found. This adjustment should prevent the script from failing due to missing directories.

Checking for the Correct Path: The script now checks if the Applications directory exists. If it doesn’t, it looks in Library/MobileSubstrate/DynamicLibraries or other relevant paths depending on where the files are located in the .deb.
Fail Gracefully: If no appropriate directory is found, the script exits with a message indicating that no application files were found.
This adjustment should prevent the script from failing due to missing directories.
Changes Made:
Correct Path for zip:
The zip -r App.ipa Payload command is executed in the ipa directory. This ensures the IPA file is created in the correct location.

File Check:
A check is added after the zip command to confirm that the .ipa file was created successfully. If the file is not found, the workflow will fail with a message.

This should prevent the error and ensure that the .ipa file is created and uploaded correctly.
Key Updates:
Extracting the Filename:

The script extracts the filename from the .deb URL using basename and removes the .deb extension. This filename is then used to name the .ipa file.
Dynamic .ipa Name:

The .ipa file is named using the .deb file's base name (e.g., if the .deb file is com.hoangdus.speedster_2.1.1_iphoneos-arm.deb, the .ipa will be com.hoangdus.speedster_2.1.1_iphoneos-arm.ipa).
This will ensure that the .ipa file has the same name as the .deb file, maintaining a consistent naming convention across the files.
What Changed:
Handling Different Directory Structures:

The script now checks if the extracted files are in var/jb/Applications or var/jb/Library. This allows it to work with .deb files that use different directory structures (common in jailbroken apps or tweaks).
Error Handling:

The script will exit with an error if no valid application files are found in any expected directory.
This update should resolve the issue you encountered by adapting to the structure of the .deb file.
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

Successfully merging this pull request may close these issues.

1 participant