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

Auto Update #1006

Merged
merged 18 commits into from
Sep 24, 2024
Merged

Auto Update #1006

merged 18 commits into from
Sep 24, 2024

Conversation

DanielSvoboda
Copy link
Contributor

@DanielSvoboda DanielSvoboda commented Sep 21, 2024

Update the emulator directly from the application.

In the settings menu, you can enable the "Check for Updates at Startup" option and choose the download channel:

  • Stable: stable versions released approximately once a month (These versions are more reliable and tested)
  • Unstable: pre-releases with updates almost daily (These may contain bugs and are less stable)

*not tested on macOS

Images:

image

You can see the changelog by clicking the button. It is not available if you are using an unstable version and try to update to stable, as there will be no changelog for older versions.
image

The 'About' tab is now called 'Help' and you can also check for updates using this button.
image

Yiga also contributed the icon for the download and dump:
image

Settings: You can enable the "Check for Updates at Startup" option and choose the download channel Stable, Unstable
image

The translation files "tr_TR.ts" and "ar.ts" were also fixed.
It was inspired by the operation of rpcs3, none of its code was used, but I mention it in recognition.

Technical information- Create autoUpdate in your fork

For the pre-release to work on a fork, you need to create a token, and change some links, here is the step by step:

https://github.com/settings/tokens/new
Note: SHADPS4_TOKEN_REPO
Expiration: No expiration
Select scopes: repo
Create and copy the code (it will only appear once, so it is a good idea to put it in a notepad until you use it)
[do not send it to anyone]

the link below change 'shadPS4-emu' to your user
https://github.com/shadPS4-emu/shadPS4/settings/secrets/actions
New repository secret
name: SHADPS4_TOKEN_REPO
Secret: paste the code you copied in the previous step

and update the 3 links in check_update.cpp to your repository
change repository name in build.yml
body: "Full Changelog: ... https://github.com/shadps4-emu/shadPS4/compare ...
You may also need to change the branch name in:
if: github.ref == 'refs/heads/main' && github.event_name == 'push'

on:
  push:
    branches: [ "main" ]

Special thanks: LeDragoX | Vinicius Rangel | Yiga

DanielSvoboda and others added 15 commits September 12, 2024 18:20
Adding Dump and Download icons
Does not use zlin-ng to unpack, now uses powershell on windows and on linux/mac uses unzip or 7z, and if it does not find it, it will ask if you want to install it before extracting.

Do not show the changelog button if: The current version is a pre-release and the version to be downloaded is a release.
src/qt_gui/checkUpdate.cpp Outdated Show resolved Hide resolved
src/common/scm_rev.cpp.in Outdated Show resolved Hide resolved
@polybiusproxy
Copy link
Collaborator

You haven't updated the filenames on the Qt files

@DanielSvoboda
Copy link
Contributor Author

You haven't updated the filenames on the Qt files

Which file is missing?
I renamed the 2 you mentioned check_update.cpp/check_update.h
image

@georgemoralis georgemoralis merged commit f79da98 into shadps4-emu:main Sep 24, 2024
10 checks passed
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.

4 participants