Skip to content

Conversation

XuYicong
Copy link
Member

@XuYicong XuYicong commented Mar 9, 2023

Created a new file Macho.swift to put macho-related code, so that PlayTools has less lines than swiftlint's upper bound

Added sanity checks while iterating load commands.

Added byte order checks while replacing load commands.

Variable names changed to more meaningful ones.

@IsaacMarovitz
Copy link
Member

Code looks good, thank you for the cleanup! Gonna test the full suite of apps now just to make sure nothing went wrong.

Copy link
Member

@IsaacMarovitz IsaacMarovitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works perfectly

@Depal1 Depal1 merged commit f6ff252 into PlayCover:test-xcode-less-installer Mar 9, 2023
@XuYicong XuYicong deleted the xclt-less branch March 9, 2023 18:49
IsaacMarovitz added a commit to IsaacMarovitz/PlayCover that referenced this pull request Mar 11, 2023
* macho converter code cleanup

* lint lc iterate in playtools

* add back enough space check

* Update Macho.swift

* Add Macho.swift to project

* Indentation adjustments

---------

Co-authored-by: Isaac Marovitz <42140194+IsaacMarovitz@users.noreply.github.com>
Co-authored-by: Isaac Marovitz <isaacryu@icloud.com>
IsaacMarovitz added a commit to IsaacMarovitz/PlayCover that referenced this pull request Mar 11, 2023
* macho converter code cleanup

* lint lc iterate in playtools

* add back enough space check

* Update Macho.swift

* Add Macho.swift to project

* Indentation adjustments

---------

Co-authored-by: Isaac Marovitz <42140194+IsaacMarovitz@users.noreply.github.com>
Co-authored-by: Isaac Marovitz <isaacryu@icloud.com>
JoseMoreville pushed a commit that referenced this pull request Mar 16, 2023
* Fix XCLT-less Installer (#830)

* Revert "Add `install_name_tool` replacement (#794)"

This reverts commit 9590e8d.

* Comment the theory

* Yipee

* SwiftLint

* Step 4

* SwiftLint

* Fix cast whoopsie

* Fixes

* Some fixes and cleanup

* Spacing

* It works

* SwiftLint

* Change path

* Cleanup version command replacement

* More optimisations

* Fix strip

* Add more prints

* More cleanup

* Cleanup and simplify

* SwiftLint

* Adjust prints

* SwiftLint :/

* More info

* Start XCLT-like insert replace (almost working)

* Revert "Start XCLT-like insert replace (almost working)"

This reverts commit d35772b.

* XCLT-like path replacement

* Fix padding

* Fix space check

* Xyct suggestion not sure if this is necessary

* Who needs error checking anyways

* Fix PT failing to install first time in FAT binaries

* xclt less installer macho converter code cleanup (#851)

* macho converter code cleanup

* lint lc iterate in playtools

* add back enough space check

* Update Macho.swift

* Add Macho.swift to project

* Indentation adjustments

---------

Co-authored-by: Isaac Marovitz <42140194+IsaacMarovitz@users.noreply.github.com>
Co-authored-by: Isaac Marovitz <isaacryu@icloud.com>

---------

Co-authored-by: Xyct <87l46110@gmail.com>
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.

3 participants