mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-19 07:32:08 +00:00
testlfyfgdufhgoudyfgh (#103)
* Implementation of loading modal * little things but this is good * Update README.md * dim mode * hello 👋 (#95) * bug fix dimming * improved the fetchEpisodeMetadata logic * Aniskip logic and basic buttons (#96) * Aniskip logic and basic buttons * good fuckin enough for now * im callin good enough * bug fix * its something * hallelujah * Update SearchView.swift * made subs go up the progress bar if it is showing --------- Co-authored-by: Seiike <122684677+Seeike@users.noreply.github.com> Co-authored-by: Francesco <100066266+cranci1@users.noreply.github.com> * Updated workflow to change file extension from .zip to .ipa for easier access. (#98) * Update README.md * Auto: Update IPA [skip ci] * Color picker in settings for intro and outro segments (#99) * Color picker in settings for intro and outro segments * Color picker in settings for intro and outro segments * Auto: Update IPA [skip ci] --------- Co-authored-by: cranci1 <cranci1@github.com> * fixed crash???? please yes * Auto: Update IPA [skip ci] * even more handling crazy fixes * Auto: Update IPA [skip ci] * Auto: Update IPA [skip ci] * test carsh fix * Update build.yml --------- Co-authored-by: Ibrahim Sulejmenov <batonchik2004@gmail.com> Co-authored-by: ibro <54913038+xibrox@users.noreply.github.com> Co-authored-by: Seiike <122684677+Seeike@users.noreply.github.com> Co-authored-by: bshar <98615778+bshar1865@users.noreply.github.com> Co-authored-by: cranci1 <cranci1@github.com>
This commit is contained in:
parent
0cc8f9166d
commit
0b3b04ab45
3 changed files with 28 additions and 32 deletions
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
|
|
@ -1,39 +1,29 @@
|
|||
name: Build and Release IPA
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build IPA
|
||||
runs-on: macOS-latest
|
||||
|
||||
steps:
|
||||
- name: Use Node.js 20
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: true
|
||||
|
||||
|
||||
- name: Run ipabuild.sh
|
||||
run: |
|
||||
chmod +x ipabuild.sh
|
||||
./ipabuild.sh
|
||||
|
||||
- name: Commit and push latest IPA
|
||||
run: |
|
||||
git config user.name "cranci1"
|
||||
git config user.email "cranci1@github.com"
|
||||
|
||||
mkdir -p public-build
|
||||
cp -f build/Sulfur.ipa public-build/Sulfur.ipa
|
||||
|
||||
git add -f public-build/Sulfur.ipa
|
||||
git diff --quiet && git diff --staged --quiet || git commit -m "Auto: Update IPA [skip ci]"
|
||||
git push
|
||||
|
||||
- name: Upload IPA artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Sulfur-IPA
|
||||
path: build/Sulfur.ipa
|
||||
compression-level: 0
|
||||
|
|
|
|||
|
|
@ -35,18 +35,22 @@ class ModuleManager: ObservableObject {
|
|||
DispatchQueue.main.async { [weak self] in
|
||||
guard let self = self else { return }
|
||||
|
||||
let url = self.getModulesFilePath()
|
||||
guard FileManager.default.fileExists(atPath: url.path) else {
|
||||
Logger.shared.log("No modules file found after sync", type: "Error")
|
||||
self.modules = []
|
||||
return
|
||||
}
|
||||
|
||||
do {
|
||||
let url = self.getModulesFilePath()
|
||||
if FileManager.default.fileExists(atPath: url.path) {
|
||||
self.loadModules()
|
||||
Task {
|
||||
await self.checkJSModuleFiles()
|
||||
}
|
||||
Logger.shared.log("Reloaded modules after iCloud sync")
|
||||
} else {
|
||||
Logger.shared.log("No modules file found after sync", type: "Error")
|
||||
self.modules = []
|
||||
let data = try Data(contentsOf: url)
|
||||
let decodedModules = try JSONDecoder().decode([ScrapingModule].self, from: data)
|
||||
self.modules = decodedModules
|
||||
|
||||
Task {
|
||||
await self.checkJSModuleFiles()
|
||||
}
|
||||
Logger.shared.log("Reloaded modules after iCloud sync")
|
||||
} catch {
|
||||
Logger.shared.log("Error handling modules sync: \(error.localizedDescription)", type: "Error")
|
||||
self.modules = []
|
||||
|
|
@ -135,9 +139,11 @@ class ModuleManager: ObservableObject {
|
|||
}
|
||||
|
||||
private func saveModules() {
|
||||
let url = getModulesFilePath()
|
||||
guard let data = try? JSONEncoder().encode(modules) else { return }
|
||||
try? data.write(to: url)
|
||||
DispatchQueue.main.async {
|
||||
let url = self.getModulesFilePath()
|
||||
guard let data = try? JSONEncoder().encode(self.modules) else { return }
|
||||
try? data.write(to: url)
|
||||
}
|
||||
}
|
||||
|
||||
func addModule(metadataUrl: String) async throws -> ScrapingModule {
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in a new issue