Migrate to the Aparoksha Gitea instance
This commit is contained in:
parent
29d928c6ad
commit
7b22de81e7
|
@ -1,4 +1,4 @@
|
||||||
// swift-tools-version: 5.8
|
// swift-tools-version: 6.0
|
||||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||||
|
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
@ -9,23 +9,24 @@ let package = Package(
|
||||||
.macOS(.v13)
|
.macOS(.v13)
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.package(url: "https://github.com/AparokshaUI/Adwaita", from: "0.2.0"),
|
.package(url: "https://git.aparoksha.dev/aparoksha/adwaita-swift", branch: "main"),
|
||||||
.package(url: "https://github.com/AparokshaUI/Localized", from: "0.2.0")
|
.package(url: "https://git.aparoksha.dev/aparoksha/localized", branch: "main")
|
||||||
],
|
],
|
||||||
targets: [
|
targets: [
|
||||||
.executableTarget(
|
.executableTarget(
|
||||||
name: "AdwaitaTemplate",
|
name: "AdwaitaTemplate",
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.product(name: "Adwaita", package: "Adwaita"),
|
.product(name: "Adwaita", package: "adwaita-swift"),
|
||||||
.product(name: "Localized", package: "Localized")
|
.product(name: "Localized", package: "localized")
|
||||||
],
|
],
|
||||||
path: "Sources",
|
path: "Sources",
|
||||||
resources: [
|
resources: [
|
||||||
.process("Localized.yml")
|
.process("Localized.yml")
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
.plugin(name: "GenerateLocalized", package: "Localized")
|
.plugin(name: "GenerateLocalized", package: "localized")
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
]
|
],
|
||||||
|
swiftLanguageModes: [.v5]
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<h1 align="center">Adwaita Template</h1>
|
<h1 align="center">Adwaita Template</h1>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
_Adwaita Template_ is a template application for the [Adwaita for Swift package](https://github.com/AparokshaUI/Adwaita/).
|
_Adwaita Template_ is a template application for the [Adwaita for Swift package](https://adwaita-swift.aparoksha.dev/documentation/adwaita/).
|
||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ For designing an app icon, [App Icon Preview](https://flathub.org/apps/org.gnome
|
||||||
- `data/icons/io.github.AparokshaUI.AdwaitaTemplate.Source.svg`
|
- `data/icons/io.github.AparokshaUI.AdwaitaTemplate.Source.svg`
|
||||||
- `data/icons/io.github.AparokshaUI.AdwaitaTemplate.svg`
|
- `data/icons/io.github.AparokshaUI.AdwaitaTemplate.svg`
|
||||||
- `data/icons/io.github.AparokshaUI.AdwaitaTemplate-symbolic.svg`
|
- `data/icons/io.github.AparokshaUI.AdwaitaTemplate-symbolic.svg`
|
||||||
4. Edit the code. Help is available [here](https://david-swift.gitbook.io/adwaita/), ask questions in the [discussions](https://github.com/AparokshaUI/Adwaita/discussions/).
|
4. Edit the code. Help is available [here](https://adwaita-swift.aparoksha.dev/), ask questions in the [forums](https://forums.aparoksha.dev/).
|
||||||
5. You can edit the app's icons using the previously installed tools according to [this](https://blogs.gnome.org/tbernard/2019/12/30/designing-an-icon-for-your-app/) tutorial.
|
5. You can edit the app's icons using the previously installed tools according to [this](https://blogs.gnome.org/tbernard/2019/12/30/designing-an-icon-for-your-app/) tutorial.
|
||||||
6. In GNOME Builder, click on the dropdown next to the hammer and then on `Export`. Wait until the file manager appears, open the `.flatpak` file and install the app on your device!
|
6. In GNOME Builder, click on the dropdown next to the hammer and then on `Export`. Wait until the file manager appears, open the `.flatpak` file and install the app on your device!
|
||||||
7. If you want to publish your app, replace `debug` in the following build commands by `release`:
|
7. If you want to publish your app, replace `debug` in the following build commands by `release`:
|
||||||
|
@ -58,5 +58,5 @@ you can use [this tool](https://github.com/flatpak/flatpak-builder-tools/tree/ma
|
||||||
## Thanks
|
## Thanks
|
||||||
|
|
||||||
### Dependencies
|
### Dependencies
|
||||||
- [Adwaita for Swift](https://github.com/AparokshaUI/Adwaita) licensed under the [MIT License](https://github.com/AparokshaUI/Adwaita/blob/main/LICENSE.md)
|
- [Adwaita for Swift](https://git.aparoksha.dev/aparoksha/adwaita-swift) licensed under the [MIT License](https://git.aparoksha.dev/aparoksha/adwaita-swift/src/branch/main/LICENSE.md)
|
||||||
- [Localized](https://github.com/AparokshaUI/Localized) licensed under the [MIT License](https://github.com/AparokshaUI/Localized/blob/master/LICENSE.md)
|
- [Localized](https://git.aparoksha.dev/aparoksha/localized) licensed under the [MIT License](https://git.aparoksha.dev/aparoksha/localized/src/branch/main/LICENSE.md)
|
||||||
|
|
|
@ -7,7 +7,7 @@ import Adwaita
|
||||||
struct AdwaitaTemplate: App {
|
struct AdwaitaTemplate: App {
|
||||||
|
|
||||||
let id = "io.github.AparokshaUI.AdwaitaTemplate"
|
let id = "io.github.AparokshaUI.AdwaitaTemplate"
|
||||||
var app: GTUIApp!
|
var app: AdwaitaApp!
|
||||||
|
|
||||||
var scene: Scene {
|
var scene: Scene {
|
||||||
Window(id: "main") { window in
|
Window(id: "main") { window in
|
||||||
|
|
|
@ -3,12 +3,12 @@ import Adwaita
|
||||||
struct ToolbarView: View {
|
struct ToolbarView: View {
|
||||||
|
|
||||||
@State private var about = false
|
@State private var about = false
|
||||||
var app: GTUIApp
|
var app: AdwaitaApp
|
||||||
var window: GTUIApplicationWindow
|
var window: AdwaitaWindow
|
||||||
|
|
||||||
var view: Body {
|
var view: Body {
|
||||||
HeaderBar.end {
|
HeaderBar.end {
|
||||||
Menu(icon: .default(icon: .openMenu), app: app, window: window) {
|
Menu(icon: .default(icon: .openMenu)) {
|
||||||
MenuButton(Loc.newWindow, window: false) {
|
MenuButton(Loc.newWindow, window: false) {
|
||||||
app.addWindow("main")
|
app.addWindow("main")
|
||||||
}
|
}
|
||||||
|
@ -31,8 +31,8 @@ struct ToolbarView: View {
|
||||||
developer: "david-swift",
|
developer: "david-swift",
|
||||||
version: "dev",
|
version: "dev",
|
||||||
icon: .custom(name: "io.github.AparokshaUI.AdwaitaTemplate"),
|
icon: .custom(name: "io.github.AparokshaUI.AdwaitaTemplate"),
|
||||||
website: .init(string: "https://github.com/AparokshaUI/AdwaitaTemplate")!,
|
website: .init(string: "https://git.aparoksha.dev/aparoksha/adwaita-template")!,
|
||||||
issues: .init(string: "https://github.com/AparokshaUI/AdwaitaTemplate/issues")!
|
issues: .init(string: "https://git.aparoksha.dev/aparoksha/adwaita-template/issues")!
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
"app-id": "io.github.AparokshaUI.AdwaitaTemplate",
|
"app-id": "io.github.AparokshaUI.AdwaitaTemplate",
|
||||||
"runtime": "org.gnome.Platform",
|
"runtime": "org.gnome.Platform",
|
||||||
"runtime-version": "46",
|
"runtime-version": "47",
|
||||||
"sdk": "org.gnome.Sdk",
|
"sdk": "org.gnome.Sdk",
|
||||||
"sdk-extensions": [
|
"sdk-extensions": [
|
||||||
"org.freedesktop.Sdk.Extension.swift5"
|
"org.freedesktop.Sdk.Extension.swift6"
|
||||||
],
|
],
|
||||||
"command": "AdwaitaTemplate",
|
"command": "AdwaitaTemplate",
|
||||||
"finish-args": [
|
"finish-args": [
|
||||||
|
@ -14,8 +14,8 @@
|
||||||
"--socket=wayland"
|
"--socket=wayland"
|
||||||
],
|
],
|
||||||
"build-options": {
|
"build-options": {
|
||||||
"append-path": "/usr/lib/sdk/swift5/bin",
|
"append-path": "/usr/lib/sdk/swift6/bin",
|
||||||
"prepend-ld-library-path": "/usr/lib/sdk/swift5/lib"
|
"prepend-ld-library-path": "/usr/lib/sdk/swift6/lib"
|
||||||
},
|
},
|
||||||
"cleanup": [
|
"cleanup": [
|
||||||
"/include",
|
"/include",
|
||||||
|
|
Loading…
Reference in New Issue