Replace all placeholder template values with actual PMCalc names
This commit is contained in:
parent
2e93b3e2f3
commit
773d00b335
|
@ -4,7 +4,7 @@
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
||||||
let package = Package(
|
let package = Package(
|
||||||
name: "Adwaita Template",
|
name: "Poor Man's Calculator",
|
||||||
platforms: [
|
platforms: [
|
||||||
.macOS(.v13)
|
.macOS(.v13)
|
||||||
],
|
],
|
||||||
|
@ -14,7 +14,7 @@ let package = Package(
|
||||||
],
|
],
|
||||||
targets: [
|
targets: [
|
||||||
.executableTarget(
|
.executableTarget(
|
||||||
name: "AdwaitaTemplate",
|
name: "PMCalc",
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.product(name: "Adwaita", package: "adwaita-swift"),
|
.product(name: "Adwaita", package: "adwaita-swift"),
|
||||||
.product(name: "Localized", package: "localized")
|
.product(name: "Localized", package: "localized")
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
import Adwaita
|
import Adwaita
|
||||||
|
|
||||||
@main
|
@main
|
||||||
struct AdwaitaTemplate: App {
|
struct PMCalc: App {
|
||||||
let app = AdwaitaApp(id: "io.github.AparokshaUI.AdwaitaTemplate")
|
let app = AdwaitaApp(id: "me.thealgorithm476.PMCalc.PMCalc")
|
||||||
|
|
||||||
var scene: Scene {
|
var scene: Scene {
|
||||||
Window(id: "main") { window in
|
Window(id: "main") { window in
|
Before Width: | Height: | Size: 574 B After Width: | Height: | Size: 574 B |
Before Width: | Height: | Size: 175 KiB After Width: | Height: | Size: 175 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
@ -1,11 +0,0 @@
|
||||||
[Desktop Entry]
|
|
||||||
Version=1.0
|
|
||||||
Type=Application
|
|
||||||
|
|
||||||
Name=Adwaita Template
|
|
||||||
Comment=A template for creating GNOME apps with Swift
|
|
||||||
Categories=Development;GNOME;
|
|
||||||
|
|
||||||
Icon=io.github.AparokshaUI.AdwaitaTemplate
|
|
||||||
Exec=AdwaitaTemplate
|
|
||||||
Terminal=false
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Version=1.0
|
||||||
|
Type=Application
|
||||||
|
|
||||||
|
Name=Poor Man's Calculator
|
||||||
|
Comment=Simple Calculator written using Adwaita for Swift
|
||||||
|
Categories=Development;GNOME;
|
||||||
|
|
||||||
|
Icon=me.thealgorithm476.PMCalc.PMCalc
|
||||||
|
Exec=PMCalc
|
||||||
|
Terminal=false
|
|
@ -1,9 +1,9 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<component type="desktop-application">
|
<component type="desktop-application">
|
||||||
<id>io.github.AparokshaUI.AdwaitaTemplate</id>
|
<id>me.thealgorithm476.PMCalc.PMCalc</id>
|
||||||
|
|
||||||
<name>Adwaita Template</name>
|
<name>Poor Man's Calculator</name>
|
||||||
<summary>A template for creating GNOME apps with Swift</summary>
|
<summary>Simple Calculator written using Adwaita for Swift</summary>
|
||||||
|
|
||||||
<metadata_license>MIT</metadata_license>
|
<metadata_license>MIT</metadata_license>
|
||||||
<project_license>LGPL-3.0-or-later</project_license>
|
<project_license>LGPL-3.0-or-later</project_license>
|
||||||
|
@ -16,10 +16,10 @@
|
||||||
|
|
||||||
<description>
|
<description>
|
||||||
<p>
|
<p>
|
||||||
This is a <em>long</em> description of this project. Yes - that is required!
|
Calculator written in Adwaita for Swift, using a custom Math library written in C.
|
||||||
</p>
|
</p>
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
<launchable type="desktop-id">io.github.AparokshaUI.AdwaitaTemplate.desktop</launchable>
|
<launchable type="desktop-id">me.thealgorithm476.PMCalc.PMCalc.desktop</launchable>
|
||||||
</component>
|
</component>
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"app-id": "io.github.AparokshaUI.AdwaitaTemplate",
|
"app-id": "me.thealgorithm476.PMCalc.PMCalc",
|
||||||
"runtime": "org.gnome.Platform",
|
"runtime": "org.gnome.Platform",
|
||||||
"runtime-version": "46",
|
"runtime-version": "46",
|
||||||
"sdk": "org.gnome.Sdk",
|
"sdk": "org.gnome.Sdk",
|
||||||
"sdk-extensions": [
|
"sdk-extensions": [
|
||||||
"org.freedesktop.Sdk.Extension.swift5"
|
"org.freedesktop.Sdk.Extension.swift5"
|
||||||
],
|
],
|
||||||
"command": "AdwaitaTemplate",
|
"command": "PMCalc",
|
||||||
"finish-args": [
|
"finish-args": [
|
||||||
"--share=ipc",
|
"--share=ipc",
|
||||||
"--socket=fallback-x11",
|
"--socket=fallback-x11",
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
],
|
],
|
||||||
"modules": [
|
"modules": [
|
||||||
{
|
{
|
||||||
"name": "AdwaitaTemplate",
|
"name": "PMCalc",
|
||||||
"builddir": true,
|
"builddir": true,
|
||||||
"buildsystem": "simple",
|
"buildsystem": "simple",
|
||||||
"sources": [
|
"sources": [
|
||||||
|
@ -42,12 +42,12 @@
|
||||||
"build-commands": [
|
"build-commands": [
|
||||||
"./setup-offline.sh",
|
"./setup-offline.sh",
|
||||||
"swift build -c release --static-swift-stdlib --skip-update",
|
"swift build -c release --static-swift-stdlib --skip-update",
|
||||||
"strip .build/release/AdwaitaTemplate",
|
"strip .build/release/PMCalc",
|
||||||
"install -Dm755 .build/release/AdwaitaTemplate /app/bin/AdwaitaTemplate",
|
"install -Dm755 .build/release/PMCalc /app/bin/PMCalc",
|
||||||
"install -Dm644 data/io.github.AparokshaUI.AdwaitaTemplate.metainfo.xml $DESTDIR/app/share/metainfo/io.github.AparokshaUI.AdwaitaTemplate.metainfo.xml",
|
"install -Dm644 data/me.thealgorithm476.PMCalc.PMCalc.metainfo.xml $DESTDIR/app/share/metainfo/me.thealgorithm476.PMCalc.PMCalc.metainfo.xml",
|
||||||
"install -Dm644 data/io.github.AparokshaUI.AdwaitaTemplate.desktop $DESTDIR/app/share/applications/io.github.AparokshaUI.AdwaitaTemplate.desktop",
|
"install -Dm644 data/me.thealgorithm476.PMCalc.PMCalc.desktop $DESTDIR/app/share/applications/me.thealgorithm476.PMCalc.PMCalc.desktop",
|
||||||
"install -Dm644 data/icons/io.github.AparokshaUI.AdwaitaTemplate.svg $DESTDIR/app/share/icons/hicolor/scalable/apps/io.github.AparokshaUI.AdwaitaTemplate.svg",
|
"install -Dm644 data/icons/me.thealgorithm476.PMCalc.PMCalc.svg $DESTDIR/app/share/icons/hicolor/scalable/apps/me.thealgorithm476.PMCalc.PMCalc.svg",
|
||||||
"install -Dm644 data/icons/io.github.AparokshaUI.AdwaitaTemplate-symbolic.svg $DESTDIR/app/share/icons/hicolor/symbolic/apps/io.github.AparokshaUI.AdwaitaTemplate-symbolic.svg"
|
"install -Dm644 data/icons/me.thealgorithm476.PMCalc.PMCalc-symbolic.svg $DESTDIR/app/share/icons/hicolor/symbolic/apps/me.thealgorithm476.PMCalc.PMCalc-symbolic.svg"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,53 +0,0 @@
|
||||||
{
|
|
||||||
"app-id": "io.github.AparokshaUI.AdwaitaTemplate",
|
|
||||||
"runtime": "org.gnome.Platform",
|
|
||||||
"runtime-version": "48",
|
|
||||||
"sdk": "org.gnome.Sdk",
|
|
||||||
"sdk-extensions": [
|
|
||||||
"org.freedesktop.Sdk.Extension.swift6"
|
|
||||||
],
|
|
||||||
"command": "AdwaitaTemplate",
|
|
||||||
"finish-args": [
|
|
||||||
"--share=ipc",
|
|
||||||
"--socket=fallback-x11",
|
|
||||||
"--device=dri",
|
|
||||||
"--socket=wayland"
|
|
||||||
],
|
|
||||||
"build-options": {
|
|
||||||
"append-path": "/usr/lib/sdk/swift6/bin",
|
|
||||||
"prepend-ld-library-path": "/usr/lib/sdk/swift6/lib"
|
|
||||||
},
|
|
||||||
"cleanup": [
|
|
||||||
"/include",
|
|
||||||
"/lib/pkgconfig",
|
|
||||||
"/man",
|
|
||||||
"/share/doc",
|
|
||||||
"/share/gtk-doc",
|
|
||||||
"/share/man",
|
|
||||||
"/share/pkgconfig",
|
|
||||||
"*.la",
|
|
||||||
"*.a"
|
|
||||||
],
|
|
||||||
"modules": [
|
|
||||||
{
|
|
||||||
"name": "AdwaitaTemplate",
|
|
||||||
"builddir": true,
|
|
||||||
"buildsystem": "simple",
|
|
||||||
"sources": [
|
|
||||||
{
|
|
||||||
"type": "dir",
|
|
||||||
"path": "."
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"build-commands": [
|
|
||||||
"swift build -c debug --static-swift-stdlib",
|
|
||||||
"strip .build/debug/AdwaitaTemplate",
|
|
||||||
"install -Dm755 .build/debug/AdwaitaTemplate /app/bin/AdwaitaTemplate",
|
|
||||||
"install -Dm644 data/io.github.AparokshaUI.AdwaitaTemplate.metainfo.xml $DESTDIR/app/share/metainfo/io.github.AparokshaUI.AdwaitaTemplate.metainfo.xml",
|
|
||||||
"install -Dm644 data/io.github.AparokshaUI.AdwaitaTemplate.desktop $DESTDIR/app/share/applications/io.github.AparokshaUI.AdwaitaTemplate.desktop",
|
|
||||||
"install -Dm644 data/icons/io.github.AparokshaUI.AdwaitaTemplate.svg $DESTDIR/app/share/icons/hicolor/scalable/apps/io.github.AparokshaUI.AdwaitaTemplate.svg",
|
|
||||||
"install -Dm644 data/icons/io.github.AparokshaUI.AdwaitaTemplate-symbolic.svg $DESTDIR/app/share/icons/hicolor/symbolic/apps/io.github.AparokshaUI.AdwaitaTemplate-symbolic.svg"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -0,0 +1,53 @@
|
||||||
|
{
|
||||||
|
"app-id": "me.thealgorithm476.PMCalc.PMCalc",
|
||||||
|
"runtime": "org.gnome.Platform",
|
||||||
|
"runtime-version": "48",
|
||||||
|
"sdk": "org.gnome.Sdk",
|
||||||
|
"sdk-extensions": [
|
||||||
|
"org.freedesktop.Sdk.Extension.swift6"
|
||||||
|
],
|
||||||
|
"command": "PMCalc",
|
||||||
|
"finish-args": [
|
||||||
|
"--share=ipc",
|
||||||
|
"--socket=fallback-x11",
|
||||||
|
"--device=dri",
|
||||||
|
"--socket=wayland"
|
||||||
|
],
|
||||||
|
"build-options": {
|
||||||
|
"append-path": "/usr/lib/sdk/swift6/bin",
|
||||||
|
"prepend-ld-library-path": "/usr/lib/sdk/swift6/lib"
|
||||||
|
},
|
||||||
|
"cleanup": [
|
||||||
|
"/include",
|
||||||
|
"/lib/pkgconfig",
|
||||||
|
"/man",
|
||||||
|
"/share/doc",
|
||||||
|
"/share/gtk-doc",
|
||||||
|
"/share/man",
|
||||||
|
"/share/pkgconfig",
|
||||||
|
"*.la",
|
||||||
|
"*.a"
|
||||||
|
],
|
||||||
|
"modules": [
|
||||||
|
{
|
||||||
|
"name": "PMCalc",
|
||||||
|
"builddir": true,
|
||||||
|
"buildsystem": "simple",
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"type": "dir",
|
||||||
|
"path": "."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"build-commands": [
|
||||||
|
"swift build -c debug --static-swift-stdlib",
|
||||||
|
"strip .build/debug/PMCalc",
|
||||||
|
"install -Dm755 .build/debug/PMCalc /app/bin/PMCalc",
|
||||||
|
"install -Dm644 data/me.thealgorithm476.PMCalc.PMCalc.metainfo.xml $DESTDIR/app/share/metainfo/me.thealgorithm476.PMCalc.PMCalc.metainfo.xml",
|
||||||
|
"install -Dm644 data/me.thealgorithm476.PMCalc.PMCalc.desktop $DESTDIR/app/share/applications/me.thealgorithm476.PMCalc.PMCalc.desktop",
|
||||||
|
"install -Dm644 data/icons/me.thealgorithm476.PMCalc.PMCalc.svg $DESTDIR/app/share/icons/hicolor/scalable/apps/me.thealgorithm476.PMCalc.PMCalc.svg",
|
||||||
|
"install -Dm644 data/icons/me.thealgorithm476.PMCalc.PMCalc-symbolic.svg $DESTDIR/app/share/icons/hicolor/symbolic/apps/me.thealgorithm476.PMCalc.PMCalc-symbolic.svg"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue