Guest User

Think or Swim on aarch64 (Asahi)

a guest
Dec 8th, 2024
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.43 KB | Software | 0 0
  1. # Running Think or Swim (ToS) natively on aarch64 (Asahi Linux on M1 Apple Silicon)
  2.  
  3. # IMPORTANT: PLEASE FOLLOW THESE STEPS IN ORDER.. AND DON'T SKIP/RE-ARRANGE ANY STEPS.
  4.  
  5. # Run the installer and finish installation.
  6. # Select the option to run ToS afterwards.
  7. # Wait for it to finish updating (this may take a while).
  8. # You can click on 'Installing updates..' to see the update progress.
  9. # Close the app once you make it to the main screen.
  10. ~/Downloads/thinkorswim_installer.sh
  11.  
  12. # Download the aarch64 version of jxbrowser-linux64 to the cache directory (ignore robots.txt error).
  13. wget -rO "$(realpath ~/thinkorswim/usergui/*/jxbrowser-linux64-7.27.jar)" "https://rapi.tools.ops.smartbear.io/nexus/content/groups/public/com/teamdev/jxbrowser/jxbrowser-linux64-arm/7.28/jxbrowser-linux64-arm-7.28.jar"
  14.  
  15. # Update the directory name inside the jar from 7.28 to 7.27 (requires 7z to be instaled)
  16. 7z rn "$(realpath ~/thinkorswim/usergui/*/jxbrowser-linux64-7.27.jar)" 7.28 7.27
  17.  
  18. # Run ToS again to let it extract the above archive (wait till the updates screen finishes).
  19. # Close the app afterwards.
  20. ~/thinkorswim/thinkorswim
  21.  
  22. # Update the launch command args to disable chromium extraction verification.
  23. # Update '~/thinkorswim/thinkorswim'. Towards the end of the file, replace:
  24. "-Dwhitelabel=tos"
  25. with:
  26. "-Djxbrowser.chromium.verification.off=1 -Dwhitelabel=tos"
  27.  
  28. # Run ToS normally from this point on!
  29. ~/thinkorswim/thinkorswim
Advertisement
Add Comment
Please, Sign In to add comment