forked from pop-os/cosmic-launcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
178 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Desktop Entry] | ||
Name=COSMIC Launcher | ||
Comment=COSMIC Launcher | ||
Type=Application | ||
Exec=cosmic-launcher | ||
Terminal=false | ||
Categories=GNOME;GTK; | ||
Keywords=Gnome;GTK; | ||
Icon=com.system76.CosmicLauncher | ||
StartupNotify=true | ||
X-HostWaylandDisplay=true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- Ashley Wulber 2019 <[email protected]> --> | ||
<component type="desktop-application"> | ||
<id>com.system76.CosmicLauncher</id> | ||
<metadata_license>CC0</metadata_license> | ||
<project_license>GPL-3.0-only</project_license> | ||
<name>COSMIC Launcher</name> | ||
<summary>COSMIC frontend for Pop Launcher</summary> | ||
<description> | ||
<p>The COSMIC frontend for Pop Launcher</p> | ||
</description> | ||
<url type="homepage">https://github.com/pop-os/cosmic-launcher</url> | ||
<url type="bugtracker">https://github.com/pop-os/cosmic-launcher/issues</url> | ||
<content_rating type="oars-1.0" /> | ||
<releases> | ||
<release version="0.1.0" date="2023-01-01" /> | ||
</releases> | ||
<kudos> | ||
<kudo>ModernToolkit</kudo> | ||
<kudo>HiDpiIcon</kudo> | ||
</kudos> | ||
<developer_name>Ashley Wulber</developer_name> | ||
<update_contact>[email protected]</update_contact> | ||
<translation type="gettext">cosmic-launcher</translation> | ||
<launchable type="desktop-id">com.system76.CosmicLauncher.desktop</launchable> | ||
</component> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
appid := env_var('APPID') | ||
install-dir := env_var('INSTALL_DIR') | ||
|
||
scalable-src := appid + '.svg' | ||
scalable-dst := install-dir / 'icons' / 'hicolor' / 'scalable' / 'apps' / scalable-src | ||
|
||
symbolic-src := appid + '-symbolic.svg' | ||
symbolic-dst := install-dir / 'icons' / 'hicolor' / 'symbolic' / 'apps' / symbolic-src | ||
|
||
install: | ||
install -Dm0644 {{scalable-src}} {{scalable-dst}} | ||
install -Dm0644 {{symbolic-src}} {{symbolic-dst}} | ||
|
||
uninstall: | ||
rm {{scalable-dst}} {{symbolic-dst}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
appid := env_var('APPID') | ||
install-dir := env_var('INSTALL_DIR') | ||
|
||
desktop-src := appid + '.desktop' | ||
desktop-dst := install-dir / 'applications' / desktop-src | ||
|
||
metainfo-src := appid + '.metainfo.xml' | ||
metainfo-dst := install-dir / 'metainfo' / metainfo-src | ||
|
||
install: | ||
install -Dm0644 {{desktop-src}} {{desktop-dst}} | ||
install -Dm0644 {{metainfo-src}} {{metainfo-dst}} | ||
|
||
uninstall: | ||
rm {{desktop-dst}} {{metainfo-dst}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/usr/bin/cosmic-launcher | ||
/usr/share/applications/com.system76.CosmicLauncher.desktop | ||
/usr/share/icons/hicolor/scalable/apps/com.system76.CosmicLauncher.svg | ||
/usr/share/icons/hicolor/symbolic/apps/com.system76.CosmicLauncher-symbolic.svg | ||
/usr/share/metainfo/com.system76.CosmicLauncher.metainfo.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
tar-ignore=target | ||
tar-ignore=vendor | ||
tar-ignore=obj-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name := 'cosmic-launcher' | ||
export APPID := 'com.system76.CosmicLauncher' | ||
|
||
rootdir := '' | ||
prefix := '/usr' | ||
|
||
export INSTALL_DIR := clean(justfile_directory() / rootdir / prefix / 'share') | ||
|
||
bin-src := 'target' / 'release' / name | ||
bin-dst := INSTALL_DIR / 'bin' / name | ||
|
||
# Default recipe which runs `just build-release` | ||
default: build-release | ||
|
||
# Runs `cargo clean` | ||
clean: | ||
cargo clean | ||
|
||
# `cargo clean` and removes vendored dependencies | ||
clean-dist: clean | ||
rm -rf .cargo vendor vendor.tar | ||
|
||
# Compiles with debug profile | ||
build-debug *args: | ||
cargo build {{args}} | ||
|
||
# Compiles with release profile | ||
build-release *args: (build-debug '--release' args) | ||
|
||
# Compiles release profile with vendored dependencies | ||
build-vendored *args: vendor-extract (build-release '--frozen --offline' args) | ||
|
||
# Runs a clippy check | ||
check *args: | ||
cargo clippy --all-features {{args}} -- -W clippy::pedantic | ||
|
||
# Runs a clippy check with JSON message format | ||
check-json: (check '--message-format=json') | ||
|
||
# Installs files | ||
install: | ||
install -Dm0644 {{bin-src}} {{bin-dst}} | ||
@just data/install | ||
@just data/icons/install | ||
|
||
# Uninstalls installed files | ||
uninstall: | ||
rm {{bin-dst}} | ||
@just data/uninstall | ||
@just data/icons/uninstall | ||
|
||
# Vendor dependencies locally | ||
vendor: | ||
mkdir -p .cargo | ||
cargo vendor --sync Cargo.toml \ | ||
| head -n -1 > .cargo/config | ||
echo 'directory = "vendor"' >> .cargo/config | ||
tar pcf vendor.tar vendor | ||
rm -rf vendor | ||
|
||
# Extracts vendored dependencies | ||
vendor-extract: | ||
#!/usr/bin/env sh | ||
rm -rf vendor | ||
tar pxf vendor.tar |
Oops, something went wrong.