Commit Graph
127 Commits
Author SHA1 Message Date
Duy Tran Khanh 83b43238c9 Fix(JNA): snprintf() output has been truncated
Update JNA to 5.13.0:
https://github.com/java-native-access/jna/blob/767662a/lib/native/darwi
n-aarch64.jar
$ vtool -arch arm64 -set-build-version 2 12.0 16.0 -replace -output
libjnidispatch.dylib libjnidispatch.dylib
$ install_name_tool -change
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
/System/Library/Frameworks/Foundation.framework/Foundation
libjnidispatch.dylib
2023-03-19 16:04:15 +07:00
Eilionoir Tunnicliff 0d6994c354 Add new "Penciled Development" app icon
Also switches to the new Universal app icon type. Backwards compatible to iOS 12, but requires Xcode 14+ to work.
2023-03-15 23:36:33 -04:00
Eilionoir Tunnicliff c2f4919010 Fix upload issue and see if I can access the cache this way 2023-03-15 14:19:45 -04:00
Eilionoir Tunnicliff 6e5f3b7139 Fix the issues! 2023-03-15 14:02:34 -04:00
Eilionoir Tunnicliff 67cebff301 mkdir -p instead 2023-03-15 13:18:38 -04:00
Eilionoir Tunnicliff 382a1af67c Build for iOS, tvOS, and simulators with Makefile + matrix 2023-03-15 13:15:24 -04:00
Eilionoir Tunnicliff 140b3e1d8c Revert "Workaround local development environment weirdness + fix config.h.in"
This reverts commit 66377f9256.
2023-03-13 14:01:48 -04:00
Eilionoir Tunnicliff 66377f9256 Workaround local development environment weirdness + fix config.h.in
Something with macOS Ventura 13.3 and Xcode 14.3 breaks init_hookFunctions(): the app compiles fine but won't launch, throwing off errors that were supposedly fixed already. This variable allows me to disable the function outright so I can continue UI development without having to downgrade to Ventura 13.2.1 (because Time Machine is going to be an ASS to deal with.) Don't set this variable as it will cause the game itself to not behave correctly.
2023-03-13 12:28:04 -04:00
Eilionoir Tunnicliff e2040fb3be Readd account button to Settings and only show text in landscape mode
There is a bug in this where the text can become "sticky" and stay the same when rotating if the sidebar is opened but no rows are selected (meaning that the app just finished launching and LauncherNewsViewController is still presented by LauncherNavigationController.) More needs to be done to fix this little bug, however it does not hinder the usability of the account button or anything else in the launcher so I'm pushing it now to fix later.
2023-03-09 13:13:32 -05:00
Eilionoir Tunnicliff fe2b85ec32 Ask for microphone permission when launching the app, if not already enabled 2023-01-29 13:18:33 -05:00
Eilionoir Tunnicliff d1cc9ac977 Add "slim" builds (#494)
* Merge 'main' into 'slim-building' (#493)

* Remove java-16-openjdk from environmentFailsafes()

Versions that use 16 can use 17 as well. Instead of wasting storage and installing both, use just 17 instead.

* Jailbreak JIT fixes

- palera1n detection
- enable JIT if jailbreak bit is set

* github.dev moment

Fix syntax error

* README changes

* Requirements + tvOS things

* Produce a "slimmed" build

Slimmed builds only include the Java 8 runtime, meaning only 1.16.5 and lower can be played. Made for those tight on storage or only using older versions.

* Move zip around

* No need for the * glob

* Escape globs

* --exclude instead of -x

I literally have no idea what's going on, this probably won't fix it

* Payload

* bruh
2023-01-27 09:18:50 -05:00
Duy Tran Khanh cdd4d3908b Fix(MCDL): multiple debug prints of call stack
Fix(local,Makefile) : @ldid: command not found, why?
2023-01-26 12:52:03 +07:00
Duy Tran Khanh fcc7d8b2d4 Fix(iOS 12): fatal issues: dlopen, entitlement
* dlopening the main executable fails
* dlopening dylib fails due to codesign
* Installing PojavLauncher with AppSync causing
extended-virtual-addressing entitlement to be checked improperly

Current issue: it seems that Java 8 is broken on iOS 12
2023-01-20 21:42:51 +07:00
khanhduytran0 b0203d6fc7 Text input for jar launcher, update lib, fixes
News
- Added text input support for jar launcher.
- Updated MoltenVK to https://github.com/KhronosGroup/MoltenVK/commit/d880f4c

Internal changes
- Added more handling cases to avoid missing call to pojav_initOpenGL()
- Moved custom control’s global functions and properties to ControlLayout.
- Moved dylib framework outside its folder, as it’s not necessary to be bundled in framework.
- Reusing custom controls to produce flexible buttons in jar launcher, which might be extended in the future.

Fixes
- Multistage text input (Japanese, Chinese, etc) should now work again.
- Pointer lock should now function properly again.

- Updated README.md to reflect current stuff
2023-01-19 09:54:55 +07:00
Eilionoir Tunnicliff 7d2948b89b Re-add LaunchScreen.storyboardc
Apparently iOS will assume you're using a 3.5" iPhone is there isn't one. Unsure why, too tired to look into a solution, so just reverting the removal.
2022-12-18 03:34:27 -05:00
Eilionoir Tunnicliff e3096ad909 Formatting fixes 2022-12-18 02:49:27 -05:00
Eilionoir Tunnicliff 052e69966c Whoops lmaooo 2022-12-18 02:46:42 -05:00
befafed4fa v2.2 - Drop .deb and other jailbreak changes (#448)
* Merge 'main' into '2.2-nojb' (#447)

* Changes

- Refine WKWebView on notched devices (worked fine on my 7 as well...)
- Add iDevice model, iOS version, and install to General footer

* New debug option: auto correction

Sometimes autocorrection can be annoying, so there's now a toggle,
enabled by default to preserve behavior.

* Changes to custom controls

Allow saving to default.json
Put custom controls editor to in-game menu
Localization

* Rename renderer: tinygl4angle to ANGLE

This avoids confusion between Android and iOS version when mentioning
this renderer

* GLFW.java: add glfwExtensionSupported

* New Crowdin updates (#438)

* New translations Localizable.strings (French)

* New translations Localizable.strings (Chinese Simplified)

* New translations Localizable.strings (Finnish)

* New translations Localizable.strings (English)

* New translations Localizable.strings (German)

* New translations Localizable.strings (Ukrainian)

* New translations Localizable.strings (Ukrainian)

* New translations Localizable.strings (Estonian)

* New translations Localizable.strings (Chinese Simplified)

* New translations Localizable.strings (Chinese Simplified)

* New translations Localizable.strings (Russian)

* New translations Localizable.strings (English (upside down))

* New translations Localizable.strings (Czech)

* New translations Localizable.strings (Czech)

* New translations Localizable.strings (Turkish)

* New translations Localizable.strings (Swedish)

* New translations Localizable.strings (Ukrainian)

* New translations Localizable.strings (Chinese Traditional)

* New translations Localizable.strings (Vietnamese)

* New translations Localizable.strings (Portuguese, Brazilian)

* New translations Localizable.strings (Persian)

* New translations Localizable.strings (Bengali)

* New translations Localizable.strings (Thai)

* New translations Localizable.strings (Kazakh)

* New translations Localizable.strings (Hindi)

* New translations Localizable.strings (Slovak)

* New translations Localizable.strings (Malay)

* New translations Localizable.strings (English, United Kingdom)

* New translations Localizable.strings (Pirate English)

* New translations Localizable.strings (Filipino)

* New translations Localizable.strings (Tatar)

* New translations Localizable.strings (Latin)

* New translations Localizable.strings (Bashkir)

* New translations Localizable.strings (English (upside down))

* New translations Localizable.strings (LOLCAT)

* New translations Localizable.strings (Serbian (Cyrillic))

* New translations Localizable.strings (Russian)

* New translations Localizable.strings (Chinese Simplified)

* New translations Localizable.strings (German)

* New translations Localizable.strings (English)

* New translations Localizable.strings (Indonesian)

* New translations Localizable.strings (Romanian)

* New translations Localizable.strings (French)

* New translations Localizable.strings (Spanish)

* New translations Localizable.strings (Arabic)

* New translations Localizable.strings (Catalan)

* New translations Localizable.strings (Czech)

* New translations Localizable.strings (Greek)

* New translations Localizable.strings (Portuguese)

* New translations Localizable.strings (Finnish)

* New translations Localizable.strings (Hebrew)

* New translations Localizable.strings (Italian)

* New translations Localizable.strings (Japanese)

* New translations Localizable.strings (Korean)

* New translations Localizable.strings (Lithuanian)

* New translations Localizable.strings (Dutch)

* New translations Localizable.strings (Norwegian)

* New translations Localizable.strings (Polish)

* New translations Localizable.strings (Russian (pre-revolutionary))

* New translations Localizable.strings (Estonian)

* New translations Localizable.strings (Russian)

* New translations Localizable.strings (Chinese Simplified)

* New translations Localizable.strings (German)

* New translations Localizable.strings (Italian)

* New translations Localizable.strings (Italian)

* New translations Localizable.strings (Turkish)

* New translations Localizable.strings (French)

* New translations Localizable.strings (Spanish)

* New translations Localizable.strings (Czech)

* New translations Localizable.strings (German)

* New translations Localizable.strings (Italian)

* New translations Localizable.strings (Polish)

* New translations Localizable.strings (Russian)

* New translations Localizable.strings (Chinese Simplified)

* New translations Localizable.strings (English)

* New translations Localizable.strings (Indonesian)

* New translations Localizable.strings (Ukrainian)

* New translations Localizable.strings (Chinese Traditional)

* New translations Localizable.strings (Vietnamese)

* New translations Localizable.strings (Filipino)

* New translations Localizable.strings (English (upside down))

* New translations Localizable.strings (Estonian)

* New translations Localizable.strings (Arabic)

* New translations Localizable.strings (German)

* New translations Localizable.strings (Estonian)

* New translations Localizable.strings (Russian)

* New translations Localizable.strings (Czech)

* New translations Localizable.strings (Czech)

* New translations Localizable.strings (Turkish)

* New translations Localizable.strings (English)

* New translations Localizable.strings (French)

* New translations Localizable.strings (Chinese Simplified)

* New translations Localizable.strings (Portuguese, Brazilian)

* New translations Localizable.strings (Chinese Simplified)

* New translations Localizable.strings (Portuguese, Brazilian)

* New translations Localizable.strings (Portuguese, Brazilian)

Co-authored-by: Eilionoir Tunnicliff <[email protected]>

Co-authored-by: Duy Tran Khanh <[email protected]>
Co-authored-by: Duy Tran Khanh <[email protected]>

* Makefile changes

Should incorporate everything under "Rewrite makefile to be one-for-all" for #448 

I have no idea if this works, I know the workflow will fail at least because of the make deb, make ipa blah blah

* Change workflow to work with the rewrite

- Shouldn't need JAVA_HOME set anymore, as the Makefile sets it 
- make package
- Remove .deb

* Remove extraneous else

* Add /bin to JAVA_HOME for macOS

* Remove extras from package dependencies

* for real coal

Makefile added a space in the version smh

* Change to dsym

and we're done

* Update release workflow

* Fix dsym recipe

and now we're done

* NOSTDIN fixes + theoretically fix dsym

* Remove extraneous @

* DEBIAN Removal: 1/5

* DEBIAN Removal: 2/5

* DEBIAN Removal: 3/5

* DEBIAN Removal: 4/5

* DEBIAN Removal: 5/5

I hate GitHub web as much as you

* Remove LaunchScreen.storyboard

Co-authored-by: Duy Tran Khanh <[email protected]>
Co-authored-by: Duy Tran Khanh <[email protected]>
2022-12-18 01:33:41 -05:00
Duy Tran Khanh 13190c24aa Makefile fixes 2022-11-27 22:16:10 +07:00
Duy Tran Khanh 118cf149a3 Update Makefile
deb build now includes Pojav's JRE and now use the same entitlements as
ipa (need test!)
Potential fix for TrollStore arm64e: remove all entitlements from dylib
2022-11-27 20:33:31 +07:00
Eilionoir Tunnicliff 8fe44a1aea Add alternate Dark icon
Feature request from a whiiiiiiiiiile ago
2022-11-25 10:22:27 -05:00
Duy Tran Khanh d939654c2f Log branch name, tweaks, localization 2022-09-11 17:48:58 +07:00
Eilionoir Tunnicliff c30a5fc5d4 Fix type build error 2022-09-03 20:45:08 -04:00
Eilionoir Tunnicliff a9ca069f1f Various makefile fixes ported from the post-jailbreak-pojav branch 2022-09-02 23:53:42 -04:00
Eilionoir Tunnicliff 77b650e44d Align correctly 2022-09-02 23:39:58 -04:00
Eilionoir Tunnicliff c8be2494e9 Java kit fixes in Makefile, added to .gitignore 2022-09-02 23:39:15 -04:00
Duy Tran Khanh 6588cb8af6 (jb) Attempt to mess around libawt_headless absence 2022-08-30 11:03:25 +07:00
Eilionoir Tunnicliff bb5e42e2c0 Make the Java kit check better + actually fix it 2022-08-26 02:57:12 -04:00
Eilionoir Tunnicliff 2d61423f0c Fix building when no Java kits are downloaded already 2022-08-25 15:36:54 -04:00
Duy Tran Khanh f7d0825c88 Fix copying caciocavallo17 2022-08-24 19:06:33 +07:00
Eilionoir Tunnicliff 2beed75251 Fix copy operation x2 2022-08-24 01:52:30 -04:00
Eilionoir Tunnicliff 5b19a7095b Fix copy operating for libawt_xawt.dylib 2022-08-24 01:49:15 -04:00
Eilionoir Tunnicliff 6b5ee6650e Fix check for Java archive 2022-08-24 01:45:57 -04:00
Duy Tran Khanh 15629000a2 Fix spacing 2022-08-24 12:39:07 +07:00
Duy Tran Khanh b7cc2d097e Added Caciocavallo17; Get JRE build from Actions 2022-08-24 12:34:06 +07:00
Duy Tran Khanh 4f8e46cfc3 there wasn't cd .. 2022-08-17 20:51:03 +07:00
Duy Tran Khanh 028f2535e8 ipa build: added java 17 2022-08-17 20:45:45 +07:00
Eilionoir Tunnicliff 8f2ecc2476 Unlock java_home option when unjailbroken
Also prep code for Java 17 bundling

TODO: Allow building of ipa with different runtimes included
2022-08-17 02:54:22 -04:00
Duy Tran Khanh 8e848efc29 Fix sideloading on Windows causes Access is denied 2022-08-13 07:15:01 +07:00
Duy Tran Khanh 2679e618b8 Fix ipa files permission, should install now without error 2022-08-12 21:37:13 +07:00
Duy Tran Khanh 1d2d7edaec Update Makefile 2022-08-12 04:43:34 +07:00
Duy Tran Khanh 8ef9091192 fix the wrong file name 2022-08-12 04:36:05 +07:00
khanhduytran0 3a854fc9fd Remove -INT name suffix from IPA 2022-08-11 21:30:36 +07:00
Duy Tran Khanh 12daebcd5c IPA build: use W^X JIT-enabled runtime
Finally, we managed to get W^X JIT working. The game will now run at
full speed, without having to jailbreak the device.
More info:
https://github.com/PojavLauncherTeam/android-openjdk-build-multiarch/re
leases/tag/jre8-40df388
2022-08-11 20:49:20 +07:00
Eilionoir Tunnicliff 3ce2ee901c Pojav INT Setup (#358)
* Pull JRE Zero when compiling IPA

Also move dsym above ipa to make sure it's made

* Depend on dsym

* Disable certain preferences when unjailbroken

- Allocated RAM
- Java home (to be readded)
- Disable home symlink

* Add launch warning

* bruh

* bruh 2

* bruh 3
2022-08-10 11:34:55 -04:00
Eilionoir Tunnicliff e121ae4f7f Fix ipa building without debs 2022-08-09 11:04:16 -04:00
Duy Tran Khanh 51e6a3b7be Fixes: "An unknown error occurred" + localize file 2022-08-09 18:40:08 +07:00
Duy Tran Khanh cf98cecf0b ldid: sign only the main binary 2022-08-09 18:13:45 +07:00
Duy Tran Khanh 370997d381 Added entitlement file for IPA build 2022-08-09 17:18:43 +07:00
Duy Tran Khanh 6dcde44087 Fixes for IPA build 2022-08-09 14:21:16 +07:00