Skip to content
Open
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
15 changes: 11 additions & 4 deletions AltServer/AltServerApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1308,11 +1308,18 @@ pplx::task<std::shared_ptr<ProvisioningProfile>> AltServerApp::PrepareProvisioni
std::string preferredName;
std::string parentBundleID;

parentBundleID = app->bundleIdentifier();
preferredName = app->name();
if (parentApp.has_value())
{
parentBundleID = (*parentApp)->bundleIdentifier();
preferredName = (*parentApp)->name() + " " + app->name();
}
else
{
parentBundleID = app->bundleIdentifier();
preferredName = app->name();
}

std::string updatedParentBundleID;
updatedParentBundleID = parentBundleID + "." + team->identifier();
auto updatedParentBundleID = parentBundleID + "." + team->identifier();

std::string bundleID = std::regex_replace(app->bundleIdentifier(), std::regex(parentBundleID), updatedParentBundleID);

Expand Down
6 changes: 2 additions & 4 deletions AltServer/DeviceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ pplx::task<void> DeviceManager::InstallApp(std::string appFilepath, std::string
instproxy_client_options_add(options, "PackageType", "Developer", NULL);

fs::path destinationPath = stagingPath.append(appBundlePath.filename().string());
std::string installationPath = "/private/var/mobile/Media/" + destinationPath.generic_string();

int numberOfFiles = 0;
for (auto& item : fs::recursive_directory_iterator(appBundlePath))
Expand Down Expand Up @@ -479,10 +480,7 @@ pplx::task<void> DeviceManager::InstallApp(std::string appFilepath, std::string
didBeginInstalling = true;
};

auto narrowDestinationPath = StringFromWideString(destinationPath.c_str());
std::replace(narrowDestinationPath.begin(), narrowDestinationPath.end(), '\\', '/');

instproxy_install(ipc, narrowDestinationPath.c_str(), options, DeviceManagerUpdateStatus, uuidString);
instproxy_install(ipc, installationPath.c_str(), options, DeviceManagerUpdateStatus, uuidString);
instproxy_client_options_free(options);

// Wait until we're finished installing;
Expand Down