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

Dev #359

Closed
wants to merge 8 commits into from
Closed

Dev #359

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 74 additions & 35 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,52 @@
name: "Dopamine: build and upload"

name: build_Release
on:
push:
branches:
- '*'
- dev
paths-ignore:
- ".gitignore"
pull_request:
branches:
- '*'
- dev
paths-ignore:
- ".gitignore"
workflow_dispatch:
schedule:
- cron: '0 0 1 1 *'
- cron: '0 0 1 4 *'
- cron: '0 0 30 6 *'
- cron: '0 0 28 9 *'
- cron: '0 0 27 12 *'


concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write

env:
VERSION: '2.2.2'
BUNDLEID: 'com.wwg135.Dopamine'

jobs:
build:
runs-on: macos-13
environment: Auto Build And Release
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4.1.7
with:
submodules: recursive

- name: Install Procursus
uses: dhinakg/procursus-action@main
- name: Pre Procursus
uses: wwg135/procursus-action@main
with:
packages: ldid findutils sed coreutils make
packages: ldid findutils coreutils make sed

- name: Pre trustcache
run: |
set -x
git clone https://github.com/CRKatri/trustcache
cd trustcache
gmake -j$(sysctl -n hw.physicalcpu) OPENSSL=1
sudo cp trustcache /opt/procursus/bin/

- name: Install THEOS
- name: Pre theos
run: |
set -x
export BASEDIR="$(pwd)"
Expand All @@ -52,44 +61,74 @@ jobs:
rm $THEOS/sdks/iPhoneOS16.5.sdk.tar
cd $BASEDIR

- name: Build and Install trustcache
- name: Pre Bundleid
run: |
set -x
git clone https://github.com/CRKatri/trustcache
cd trustcache
gmake -j$(sysctl -n hw.physicalcpu) OPENSSL=1
sudo cp trustcache /opt/procursus/bin/
sed -i '' "s/com.opa334.Dopamine/${{ env.BUNDLEID }}/g" ./Application/Dopamine/Jailbreak/DOPreferenceManager.m
sed -i '' "s/com.opa334.Dopamine/${{ env.BUNDLEID }}/g" ./Application/Dopamine.xcodeproj/project.pbxproj
sed -i '' "s/com.opa334.Dopamine/${{ env.BUNDLEID }}/g" ./BaseBin/jbctl/src/main.m

- name: Set Environment Variables
- name: Set env
run: |
set -x
T2=$(TZ=UTC-2 date +'%Y%m%d_%H%M%S')
TS=$(date -j -f "%Y%m%d_%H%M%S" "${T2}" +%s)
SHASH=$(git rev-parse --short HEAD)
echo "ctime=${T2}" >> $GITHUB_ENV
echo "ctimestamp=${TS}" >> $GITHUB_ENV
echo "shorthash=${SHASH}" >> $GITHUB_ENV
sT=$(TZ=UTC-8 date +'%S')
echo "msT=$(date -j -f "%Y-%m-%d %H:%M:%S" "$(TZ=UTC-8 date +'%Y-%m-%d %H:%M'):${sT}" +%s)" >> $GITHUB_ENV
echo "shT=$(TZ=UTC-8 date +'%Y-%m-%d'' ''%H:%M:%S')" >> $GITHUB_ENV
echo "logT=$(TZ=UTC-8 date +'%Y年%m月%d %H:%M'):${sT}" >> $GITHUB_ENV

- name: Print env
run: |
echo ${{ env.VERSION }}
echo ${{ env.msT }}
echo ${{ env.shT }}
echo ${{ env.logT }}

- name: Pre Version
run: |
echo "${{ env.VERSION }}" >./BaseBin/_external/basebin/.version
sed -i '' 's/MARKETING_VERSION = .*;/MARKETING_VERSION = ${{ env.VERSION }};/g' ./Application/Dopamine.xcodeproj/project.pbxproj
#sed -i '' "s/AAA/更新时间:${{ env.shT }} 由M哥编译/g" ./Application/Dopamine/UI/Settings/DOSettingsController.m

- name: Install libarchive
run: |
brew install libarchive

- name: Download Bootstraps
run: |
set -x
cd Application/Dopamine/Resources
./download_bootstraps.sh
set -x
cd Application/Dopamine/Resources
./download_bootstraps.sh

- name: Build
- name: Build ipa
run: |
set -x
export BASEDIR="$(pwd)"
export THEOS="${BASEDIR}/theos"
gmake -j$(sysctl -n hw.physicalcpu) NIGHTLY=1
mv Application/Dopamine.tipa Dopamine.ipa

#- name: Release Logs
#run: |
#set -x
#echo -e "更新时间:${{ env.logT }}" >> body.txt
#echo "" >> ./release.md
#cat body.txt > release.txt
#echo "" >> release.txt
#cat ./release.md >> release.txt

#- name: Release ipa
#uses: softprops/action-gh-release@v1
#with:
#name: ${{ env.VERSION }}
#tag_name: ${{ env.VERSION }}
#target_commitish: 2.x
#body_path: release.txt
#latest: true
#token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
#files: |
#*.ipa

- name: Upload Artifact
id: dopamine-latest-upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4.3.4
with:
name: Dopamine
path: |
Expand Down
20 changes: 14 additions & 6 deletions Application/Dopamine.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
objects = {

/* Begin PBXBuildFile section */
0C65CFE62A47EA9D00EDF5F2 /* ellekit.deb in Resources */ = {isa = PBXBuildFile; fileRef = 0C65CFE42A47EA9D00EDF5F2 /* ellekit.deb */; };
0C65CFE52A47EA9D00EDF5F2 /* preferenceloader.deb in Resources */ = {isa = PBXBuildFile; fileRef = 0C65CFE32A47EA9D00EDF5F2 /* preferenceloader.deb */; };
0C65CFE52A47EA9D00EDF5F3 /* saily.deb in Resources */ = {isa = PBXBuildFile; fileRef = 0C65CFE32A47EA9D00EDF5F3 /* saily.deb */; };
040622AA2B77FE8E00393AAD /* DOPkgManagerPickerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 040622A92B77FE8E00393AAD /* DOPkgManagerPickerViewController.m */; };
042479A22B66916B0082581B /* DOCreditsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0424796B2B66916B0082581B /* DOCreditsViewController.m */; };
042479A32B66916B0082581B /* DOSettingsController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0424796C2B66916B0082581B /* DOSettingsController.m */; };
Expand Down Expand Up @@ -93,7 +96,6 @@
8C4ABEB92B520E7B00B43C9B /* libjailbreak.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 8CDD08422B4F6DD800A32B61 /* libjailbreak.dylib */; platformFilter = ios; };
8C4ABEBE2B52274300B43C9B /* DOPreferenceManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 8C4ABEBD2B52274300B43C9B /* DOPreferenceManager.m */; };
8C512B912B5C9F9100C6F14A /* sileo.deb in Resources */ = {isa = PBXBuildFile; fileRef = 8C512B8B2B5C9DE800C6F14A /* sileo.deb */; };
8C512B922B5C9F9400C6F14A /* zebra.deb in Resources */ = {isa = PBXBuildFile; fileRef = 8C512B8C2B5C9DE800C6F14A /* zebra.deb */; };
8C56D4BF2B7C0DF2001C03D3 /* LICENSE_ChOma.md in Resources */ = {isa = PBXBuildFile; fileRef = 8C56D4B82B7C0DF2001C03D3 /* LICENSE_ChOma.md */; };
8C56D4C02B7C0DF2001C03D3 /* LICENSE_Fugu15_Rootful.md in Resources */ = {isa = PBXBuildFile; fileRef = 8C56D4B92B7C0DF2001C03D3 /* LICENSE_Fugu15_Rootful.md */; };
8C56D4C12B7C0DF2001C03D3 /* LICENSE_dimentio.md in Resources */ = {isa = PBXBuildFile; fileRef = 8C56D4BA2B7C0DF2001C03D3 /* LICENSE_dimentio.md */; };
Expand Down Expand Up @@ -272,6 +274,9 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
0C65CFE42A47EA9D00EDF5F2 /* ellekit.deb */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "ellekit.deb"; path = "Dopamine/Resources/ellekit.deb"; sourceTree = "<group>"; };
0C65CFE32A47EA9D00EDF5F2 /* preferenceloader.deb */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "preferenceloader.deb"; path = "Dopamine/Resources/preferenceloader.deb"; sourceTree = "<group>"; };
0C65CFE32A47EA9D00EDF5F3 /* saily.deb */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "saily.deb"; path = "Dopamine/Resources/saily.deb"; sourceTree = "<group>"; };
040622A82B77FE8E00393AAD /* DOPkgManagerPickerViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DOPkgManagerPickerViewController.h; sourceTree = "<group>"; };
040622A92B77FE8E00393AAD /* DOPkgManagerPickerViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DOPkgManagerPickerViewController.m; sourceTree = "<group>"; };
042479682B66916B0082581B /* DOJailbreakButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOJailbreakButton.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -427,7 +432,6 @@
8C4ABEBC2B52274300B43C9B /* DOPreferenceManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DOPreferenceManager.h; sourceTree = "<group>"; };
8C4ABEBD2B52274300B43C9B /* DOPreferenceManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DOPreferenceManager.m; sourceTree = "<group>"; };
8C512B8B2B5C9DE800C6F14A /* sileo.deb */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = sileo.deb; sourceTree = "<group>"; };
8C512B8C2B5C9DE800C6F14A /* zebra.deb */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = zebra.deb; sourceTree = "<group>"; };
8C56D4B82B7C0DF2001C03D3 /* LICENSE_ChOma.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = LICENSE_ChOma.md; sourceTree = "<group>"; };
8C56D4B92B7C0DF2001C03D3 /* LICENSE_Fugu15_Rootful.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = LICENSE_Fugu15_Rootful.md; sourceTree = "<group>"; };
8C56D4BA2B7C0DF2001C03D3 /* LICENSE_dimentio.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = LICENSE_dimentio.md; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1020,6 +1024,9 @@
8C71980C2ABF0E82003C6658 = {
isa = PBXGroup;
children = (
0C65CFE42A47EA9D00EDF5F2 /* ellekit.deb */,
0C65CFE32A47EA9D00EDF5F2 /* preferenceloader.deb */,
0C65CFE32A47EA9D00EDF5F3 /* saily.deb */,
8C7198172ABF0E82003C6658 /* Dopamine */,
8C7198162ABF0E82003C6658 /* Products */,
8C029F642B4E2E7D0071DE58 /* Frameworks */,
Expand Down Expand Up @@ -1102,7 +1109,6 @@
8CB94F032B59E17A0098BAFD /* basebin.tar */,
8CB94F022B59E17A0098BAFD /* basebin.tc */,
8C512B8B2B5C9DE800C6F14A /* sileo.deb */,
8C512B8C2B5C9DE800C6F14A /* zebra.deb */,
8C609C992C19AC250023DD12 /* libkrw-dopamine.deb */,
8CCD8A832B6F165A004B72B0 /* libroot.deb */,
8CCD2FC32B77AA9200F9C5DA /* basebin-link.deb */,
Expand Down Expand Up @@ -1482,6 +1488,9 @@
buildActionMask = 2147483647;
files = (
8C609C9F2C19B6FA0023DD12 /* libkrw-dopamine.deb in Resources */,
0C65CFE62A47EA9D00EDF5F2 /* ellekit.deb in Resources */,
0C65CFE52A47EA9D00EDF5F2 /* preferenceloader.deb in Resources */,
0C65CFE52A47EA9D00EDF5F3 /* saily.deb in Resources */,
04DD0B372B7BA6180055DE4F /* LICENSE.md in Resources */,
04DD0B3A2B7BF3E80055DE4F /* LICENSE_libc.md in Resources */,
8C56D4CD2B7C118B001C03D3 /* LICENSE_kfd.md in Resources */,
Expand All @@ -1501,7 +1510,6 @@
042479A42B66916B0082581B /* Credits.plist in Resources */,
8C2875212BD850B4008B24DA /* LICENSE_libgrabkernel2.md in Resources */,
8C512B912B5C9F9100C6F14A /* sileo.deb in Resources */,
8C512B922B5C9F9400C6F14A /* zebra.deb in Resources */,
8CCD8A882B6F16D0004B72B0 /* libroot.deb in Resources */,
8C296BAE2BE05914007C2AD1 /* LICENSE_plooshinit.md in Resources */,
8C5FA9712BDD81EF008C246F /* LICENSE_weightBufs.md in Resources */,
Expand Down Expand Up @@ -2242,7 +2250,7 @@
"$(PROJECT_DIR)/Dopamine/Dependencies",
"$(PROJECT_DIR)/Dopamine/Resources",
);
MARKETING_VERSION = 2.2.1;
MARKETING_VERSION = 2.2.2;
PRODUCT_BUNDLE_IDENTIFIER = com.opa334.Dopamine;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
Expand Down Expand Up @@ -2279,7 +2287,7 @@
"$(PROJECT_DIR)/Dopamine/Dependencies",
"$(PROJECT_DIR)/Dopamine/Resources",
);
MARKETING_VERSION = 2.2.1;
MARKETING_VERSION = 2.2.2;
PRODUCT_BUNDLE_IDENTIFIER = com.opa334.Dopamine;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scale" : "1x"
},
{
"filename" : "icon_83[email protected]",
"filename" : "83[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
Expand Down
Binary file not shown.
35 changes: 28 additions & 7 deletions Application/Dopamine/Jailbreak/DOBootstrapper.m
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ - (void)extractBootstrap:(NSString *)path withCompletion:(void (^)(NSError *))co

- (void)prepareBootstrapWithCompletion:(void (^)(NSError *))completion
{
[[DOUIManager sharedInstance] sendLog:@"Updating BaseBin" debug:NO];
[[DOUIManager sharedInstance] sendLog:DOLocalizedString(@"Updating BaseBin") debug:NO];

// Ensure /private/preboot is mounted writable (Not writable by default on iOS <=15)
NSError *error = [self ensurePrivatePrebootIsWritable];
Expand Down Expand Up @@ -519,8 +519,17 @@ - (void)prepareBootstrapWithCompletion:(void (^)(NSError *))completion
@"Types: deb\n"
@"URIs: https://ellekit.space/\n"
@"Suites: ./\n"
@"Components:\n"
@"\n"
@"Types: deb\n"
@"URIs: https://wwg135.github.io/\n"
@"Suites: ./\n"
@"Components:\n";
[defaultSources writeToFile:JBROOT_PATH(@"/etc/apt/sources.list.d/default.sources") atomically:NO encoding:NSUTF8StringEncoding error:nil];
NSString *defaultSourcesPath = JBROOT_PATH(@"/etc/apt/sources.list.d/default.sources");
BOOL fileExists = [[NSFileManager defaultManager] fileExistsAtPath:defaultSourcesPath];
if (!fileExists) {
[defaultSources writeToFile:defaultSourcesPath atomically:NO encoding:NSUTF8StringEncoding error:nil];
}

NSString *mobilePreferencesPath = JBROOT_PATH(@"/var/mobile/Library/Preferences");
if (![[NSFileManager defaultManager] fileExistsAtPath:mobilePreferencesPath]) {
Expand Down Expand Up @@ -555,7 +564,7 @@ - (void)prepareBootstrapWithCompletion:(void (^)(NSError *))completion
[self extractBootstrap:path withCompletion:bootstrapFinishedCompletion];
};*/

[[DOUIManager sharedInstance] sendLog:@"Extracting Bootstrap" debug:NO];
[[DOUIManager sharedInstance] sendLog:DOLocalizedString(@"Extracting Bootstrap") debug:NO];

NSString *bootstrapZstdPath = [NSString stringWithFormat:@"%@/bootstrap_%@.tar.zst", [NSBundle mainBundle].bundlePath, [self bootstrapVersion]];
[self extractBootstrap:bootstrapZstdPath withCompletion:bootstrapFinishedCompletion];
Expand All @@ -570,7 +579,7 @@ - (void)prepareBootstrapWithCompletion:(void (^)(NSError *))completion
bootstrapDownloadCompletion(bundleCandidate, nil);
}
else {
[[DOUIManager sharedInstance] sendLog:@"Downloading Bootstrap" debug:NO];
[[DOUIManager sharedInstance] sendLog:DOLocalizedString(@"Downloading Bootstrap") debug:NO];
[self downloadBootstrapWithCompletion:bootstrapDownloadCompletion];
}*/
}
Expand Down Expand Up @@ -645,11 +654,23 @@ - (NSError *)finalizeBootstrap
{
// Initial setup on first jailbreak
if ([[NSFileManager defaultManager] fileExistsAtPath:JBROOT_PATH(@"/prep_bootstrap.sh")]) {
[[DOUIManager sharedInstance] sendLog:@"Finalizing Bootstrap" debug:NO];
[[DOUIManager sharedInstance] sendLog:DOLocalizedString(@"Finalizing Bootstrap") debug:NO];
int r = exec_cmd_trusted(JBROOT_PATH("/bin/sh"), JBROOT_PATH("/prep_bootstrap.sh"), NULL);
if (r != 0) {
return [NSError errorWithDomain:bootstrapErrorDomain code:BootstrapErrorCodeFailedFinalising userInfo:@{NSLocalizedDescriptionKey : [NSString stringWithFormat:@"prep_bootstrap.sh returned %d\n", r]}];
}

NSString *ellekitPath = [[NSBundle mainBundle].bundlePath stringByAppendingPathComponent:@"ellekit.deb"];
int ellekitResult = [self installPackage:ellekitPath];
if (ellekitResult != 0) {
return [NSError errorWithDomain:bootstrapErrorDomain code:BootstrapErrorCodeFailedFinalising userInfo:@{NSLocalizedDescriptionKey : [NSString stringWithFormat:@"Failed to install ellekit: %d\n", ellekitResult]}];
}

NSString *preferenceloaderPath = [[NSBundle mainBundle].bundlePath stringByAppendingPathComponent:@"preferenceloader.deb"];
int preferenceloaderResult = [self installPackage:preferenceloaderPath];
if (preferenceloaderResult != 0) {
return [NSError errorWithDomain:bootstrapErrorDomain code:BootstrapErrorCodeFailedFinalising userInfo:@{NSLocalizedDescriptionKey : [NSString stringWithFormat:@"Failed to install preferenceloader: %d\n", preferenceloaderResult]}];
}

NSError *error = [self installPackageManagers];
if (error) return error;
Expand All @@ -660,7 +681,7 @@ - (NSError *)finalizeBootstrap
BOOL shouldInstallBasebinLink = [self shouldInstallPackage:@"dopamine-basebin-link"];

if (shouldInstallLibroot || shouldInstallLibkrw || shouldInstallBasebinLink) {
[[DOUIManager sharedInstance] sendLog:@"Updating Bundled Packages" debug:NO];
[[DOUIManager sharedInstance] sendLog:DOLocalizedString(@"Updating Bundled Packages") debug:NO];
if (shouldInstallLibroot) {
NSString *librootPath = [[NSBundle mainBundle].bundlePath stringByAppendingPathComponent:@"libroot.deb"];
int r = [self installPackage:librootPath];
Expand Down Expand Up @@ -715,7 +736,7 @@ - (void)URLSession:(NSURLSession *)session downloadTask:(NSURLSessionDownloadTas
NSString *sizeString = [NSByteCountFormatter stringFromByteCount:totalBytesWritten countStyle:NSByteCountFormatterCountStyleFile];
NSString *writtenBytesString = [NSByteCountFormatter stringFromByteCount:totalBytesExpectedToWrite countStyle:NSByteCountFormatterCountStyleFile];

[[DOUIManager sharedInstance] sendLog:[NSString stringWithFormat:@"Downloading Bootstrap (%@/%@)", sizeString, writtenBytesString] debug:NO update:YES];
[[DOUIManager sharedInstance] sendLog:[NSString stringWithFormat:DOLocalizedString(@"Downloading Bootstrap (%@/%@)"), sizeString, writtenBytesString] debug:NO update:YES];
}
}

Expand Down
1 change: 1 addition & 0 deletions Application/Dopamine/Jailbreak/DOJailbreaker.m
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ - (void)runWithError:(NSError **)errOut didRemoveJailbreak:(BOOL*)didRemove show
{
BOOL removeJailbreakEnabled = [[DOPreferenceManager sharedManager] boolPreferenceValueForKey:@"removeJailbreakEnabled" fallback:NO];
BOOL tweaksEnabled = [[DOPreferenceManager sharedManager] boolPreferenceValueForKey:@"tweakInjectionEnabled" fallback:YES];
BOOL checkForUpdateEnabled = [[DOPreferenceManager sharedManager] boolPreferenceValueForKey:@"checkForUpdateEnabled" fallback:YES];
BOOL idownloadEnabled = [[DOPreferenceManager sharedManager] boolPreferenceValueForKey:@"idownloadEnabled" fallback:NO];
BOOL appJITEnabled = [[DOPreferenceManager sharedManager] boolPreferenceValueForKey:@"appJITEnabled" fallback:YES];
NSNumber *jetsamMultiplierOption = [[DOPreferenceManager sharedManager] preferenceValueForKey:@"jetsamMultiplier"];
Expand Down
Binary file added Application/Dopamine/Resources/ellekit.deb
Binary file not shown.
Binary file not shown.
Binary file added Application/Dopamine/Resources/saily.deb
Binary file not shown.
Binary file removed Application/Dopamine/Resources/zebra.deb
Binary file not shown.
6 changes: 5 additions & 1 deletion Application/Dopamine/UI/DOUIManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ - (id)init

- (BOOL)isUpdateAvailable
{
NSNumber *checkforUpdate = [_preferenceManager preferenceValueForKey:@"checkForUpdateEnabled"];
if ([checkforUpdate boolValue] == NO)
return NO;

NSString *latestVersion = [self getLatestReleaseTag];
NSString *currentVersion = [self getLaunchedReleaseTag];
return [latestVersion numericalVersionRepresentation] > [currentVersion numericalVersionRepresentation];
Expand Down Expand Up @@ -68,7 +72,7 @@ - (NSArray *)getLatestReleases
static dispatch_once_t onceToken;
static NSArray *releases;
dispatch_once(&onceToken, ^{
NSURL *url = [NSURL URLWithString:@"https://api.github.com/repos/opa334/Dopamine/releases"];
NSURL *url = [NSURL URLWithString:@"https://api.github.com/repos/wwg135/Dopamine/releases"];
NSData *data = [NSData dataWithContentsOfURL:url];
if (data) {
NSError *error;
Expand Down
2 changes: 1 addition & 1 deletion Application/Dopamine/UI/Log/DOLyricsLogView.m
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ - (void)didComplete
return;
}

[self showLog:@"Done"];
[self showLog:@"越狱成功"];
[self.stackView.arrangedSubviews makeObjectsPerformSelector:@selector(setSuccess)];
}

Expand Down
Loading
Loading