-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update debian Control * Initial Copy of Makefile from disinst [WIP] * Remove some extra commands * Compile and install binary * Install data and icons * Format Some Code * Add Vendor Support * Update debian/rules * Update Version * Update version in appdata
- Loading branch information
Showing
5,956 changed files
with
1,706,654 additions
and
110 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[source.crates-io] | ||
replace-with = "vendored-sources" | ||
|
||
[source.vendored-sources] | ||
directory = "vendor/" | ||
|
||
|
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 |
---|---|---|
|
@@ -3,7 +3,6 @@ _build/ | |
**/*.rs.bk | ||
srtnr-gtk/target | ||
*~ | ||
Makefile | ||
build/ | ||
Cargo.lock | ||
*.save |
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,6 +1,6 @@ | ||
[package] | ||
name = "srtnr" | ||
version = "0.1.5" | ||
version = "0.1.6" | ||
authors = ["Shubham Arora <[email protected]>"] | ||
|
||
[dependencies.gtk] | ||
|
@@ -11,7 +11,7 @@ features = ["v3_18"] | |
gio = "0.3.0" | ||
gdk = "0.7.0" | ||
glib = "0.4.1" | ||
urlshortener = "0.8.0" | ||
urlshortener = "0.8.1" | ||
validator = "0.6.3" | ||
libnotify = "1.0.3" | ||
gdk-pixbuf = "0.3.0" |
File renamed without changes.
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,72 @@ | ||
prefix ?= /usr | ||
exec_prefix = $(prefix) | ||
bindir = $(exec_prefix)/bin | ||
includedir = $(prefix)/include | ||
datarootdir = $(prefix)/share | ||
datadir = $(datarootdir) | ||
|
||
.PHONY: all install uninstall | ||
|
||
BIN=com.github.arshubham.srtnr | ||
|
||
SRC=src/* src/*/* | ||
DATA=data/* | ||
|
||
all: target/release/$(BIN) | ||
|
||
debug: target/debug/$(BIN) | ||
|
||
clean: | ||
rm -r target/release/data | ||
cargo clean | ||
|
||
install: all | ||
install -D -m 0755 "target/release/$(BIN)" "$(DESTDIR)$(bindir)/$(BIN)" | ||
install -D -m 0644 "target/release/data/images/icons/16/com.github.arshubham.srtnr.svg" "$(datarootdir)/icons/hicolor/16x16/apps/com.github.arshubham.srtnr.svg" | ||
install -D -m 0644 "target/release/data/images/icons/24/com.github.arshubham.srtnr.svg" "$(datarootdir)/icons/hicolor/24x24/apps/com.github.arshubham.srtnr.svg" | ||
install -D -m 0644 "target/release/data/images/icons/32/com.github.arshubham.srtnr.svg" "$(datarootdir)/icons/hicolor/32x32/apps/com.github.arshubham.srtnr.svg" | ||
install -D -m 0644 "target/release/data/images/icons/48/com.github.arshubham.srtnr.svg" "$(datarootdir)/icons/hicolor/48x48/apps/com.github.arshubham.srtnr.svg" | ||
install -D -m 0644 "target/release/data/images/icons/64/com.github.arshubham.srtnr.svg" "$(datarootdir)/icons/hicolor/64x64/apps/com.github.arshubham.srtnr.svg" | ||
install -D -m 0644 "target/release/data/images/icons/128/com.github.arshubham.srtnr.svg" "$(datarootdir)/icons/hicolor/128x128/apps/com.github.arshubham.srtnr.svg" | ||
install -D -m 0644 "target/release/data/images/com.github.arshubham.srtnr.svg" "$(datarootdir)/com.github.arshubham.srtnr/images/com.github.arshubham.srtnr.svg" | ||
install -D -m 0644 "target/release/data/images/com.github.arshubham.srtnr.png" "$(datarootdir)/pixmaps/com.github.arshubham.srtnr.png" | ||
install -D -m 0644 "target/release/data/com.github.arshubham.srtnr.appdata.xml" "$(datarootdir)/metainfo/com.github.arshubham.srtnr.appdata.xml" | ||
install -D -m 0644 "target/release/data/com.github.arshubham.srtnr.desktop" "$(datarootdir)/applications/com.github.arshubham.srtnr.desktop" | ||
install -D -m 0644 "target/release/data/com.github.arshubham.srtnr.gschema.xml" "$(datarootdir)/glib-2.0/schemas/com.github.arshubham.srtnr.gschema.xml" | ||
glib-compile-schemas $(datarootdir)/glib-2.0/schemas/ | ||
|
||
uninstall: | ||
rm -f "$(DESTDIR)$(bindir)/$(BIN)" | ||
rm -f "$(datarootdir)/icons/hicolor/16x16/apps/com.github.arshubham.srtnr.svg" | ||
rm -f "$(datarootdir)/icons/hicolor/24x24/apps/com.github.arshubham.srtnr.svg" | ||
rm -f "$(datarootdir)/icons/hicolor/32x32/apps/com.github.arshubham.srtnr.svg" | ||
rm -f "$(datarootdir)/icons/hicolor/48x48/apps/com.github.arshubham.srtnr.svg" | ||
rm -f "$(datarootdir)/icons/hicolor/64x64/apps/com.github.arshubham.srtnr.svg" | ||
rm -f "$(datarootdir)/icons/hicolor/128x128/apps/com.github.arshubham.srtnr.svg" | ||
rm -rf "$(datarootdir)/com.github.arshubham.srtnr/" | ||
rm -f "$(datarootdir)/pixmaps/com.github.arshubham.srtnr.png" | ||
rm -f "$(datarootdir)/metainfo/com.github.arshubham.srtnr.appdata.xml" | ||
rm -f "$(datarootdir)/applications/com.github.arshubham.srtnr.desktop" | ||
rm -f "$(datarootdir)/glib-2.0/schemas/com.github.arshubham.srtnr.gschema.xml" | ||
glib-compile-schemas $(datarootdir)/glib-2.0/schemas/ | ||
|
||
.cargo/config: vendor_config | ||
mkdir -p .cargo | ||
cp $< $@ | ||
|
||
update: | ||
cargo update | ||
|
||
vendor: .cargo/config | ||
cargo vendor | ||
touch vendor | ||
|
||
target/release/$(BIN): $(SRC) | ||
mkdir -p target/release/data | ||
cp -r $(DATA) target/release/data | ||
if [ -d vendor ]; \ | ||
then \ | ||
cargo build --release --frozen -p srtnr && mv target/release/srtnr target/release/$(BIN); \ | ||
else \ | ||
cargo build --release -p srtnr && mv target/release/srtnr target/release/$(BIN); \ | ||
fi |
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 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 |
---|---|---|
|
@@ -2,18 +2,22 @@ Source: com.github.arshubham.srtnr | |
Section: x11 | ||
Priority: extra | ||
Maintainer: Shubham Arora <[email protected]> | ||
Build-Depends: meson, | ||
debhelper (>= 9), | ||
libgtk-3-dev, | ||
libjson-glib-dev, | ||
rustc, | ||
cargo, | ||
libssl-dev, | ||
pkgconf, | ||
libpng-dev | ||
Standards-Version: 3.9.3 | ||
Build-Depends: | ||
cargo, | ||
debhelper (>= 9), | ||
rustc, | ||
libjson-glib-dev, | ||
libssl-dev, | ||
pkgconf, | ||
libpng-dev, | ||
libnotify-dev | ||
Standards-Version: 4.1.1 | ||
|
||
Package: com.github.arshubham.srtnr | ||
Architecture: any | ||
Depends: ${misc:Depends}, ${shlibs:Depends} | ||
Description: Shorten long Urls | ||
Depends: | ||
libgtk-3-dev, | ||
libjson-glib-dev, | ||
${misc:Depends}, | ||
${shlibs:Depends} | ||
Description: Shorten long Urls |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
{"files":{".travis.yml":"4b265390d238dcd79664069258603bbdfa3ef0012f3289cdfdf2eb656888b9cc","Cargo.toml":"6cba738dddcd24c99d2bd68ea564a8db7b6e1c8e135ad45078fdd45f8fc976fa","LICENSE":"485b7d77429d023aaf97d8dd79f1b2b122f9d529e23b25aee284622f98e2400a","README.md":"3c3150b973b16d5a8d0f6edc6d6d29a039c623c985c269c5d79ef3314f0cc6dd","appveyor.yml":"4873092bae0713890497e5ceae761af359d680e6cce5ce003bf38bc5c45cde44","src/lib.rs":"24e7e7923d2460c98746f91fd77c65793374e7c58ba842f1a3bbd713a2c27996"},"package":"6cbd0b9af8587c72beadc9f72d35b9fbb070982c9e6203e46e93f10df25f8f45"} |
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,18 @@ | ||
language: rust | ||
rust: | ||
- stable | ||
- beta | ||
- nightly | ||
sudo: false | ||
script: | ||
- cargo build --verbose | ||
- cargo test --verbose | ||
- cargo doc | ||
after_success: | | ||
[ $TRAVIS_BRANCH = master ] && | ||
[ $TRAVIS_RUST_VERSION = nightly ] && | ||
[ $TRAVIS_PULL_REQUEST = false ] && | ||
echo '<meta http-equiv=refresh content=0;url=adler32/index.html>' > target/doc/index.html && | ||
pip install --user ghp-import && | ||
$HOME/.local/bin/ghp-import -n target/doc && | ||
git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages |
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,24 @@ | ||
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
# | ||
# When uploading crates to the registry Cargo will automatically | ||
# "normalize" Cargo.toml files for maximal compatibility | ||
# with all versions of Cargo and also rewrite `path` dependencies | ||
# to registry (e.g. crates.io) dependencies | ||
# | ||
# If you believe there's an error in this file please file an | ||
# issue against the rust-lang/cargo repository. If you're | ||
# editing this file be aware that the upstream Cargo.toml | ||
# will likely look very different (and much more reasonable) | ||
|
||
[package] | ||
name = "adler32" | ||
version = "1.0.2" | ||
authors = ["Remi Rampin <[email protected]>"] | ||
description = "Minimal Adler32 implementation for Rust." | ||
documentation = "https://remram44.github.io/adler32-rs/index.html" | ||
readme = "README.md" | ||
keywords = ["adler32", "hash", "rolling"] | ||
license = "BSD-3-Clause" | ||
repository = "https://github.com/remram44/adler32-rs" | ||
[dev-dependencies.rand] | ||
version = "0.3" |
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,22 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2015 Remi Rampin | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
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,10 @@ | ||
[![Build Status](https://travis-ci.org/remram44/adler32-rs.svg?branch=master)](https://travis-ci.org/remram44/adler32-rs/builds) | ||
[![Win Build](https://ci.appveyor.com/api/projects/status/ekyg20rd6rwrus64/branch/master?svg=true)](https://ci.appveyor.com/project/remram44/adler32-rs) | ||
[![Crates.io](https://img.shields.io/crates/v/adler32.svg)](https://crates.io/crates/adler32) | ||
|
||
What is this? | ||
============= | ||
|
||
It is an implementation of the [Adler32 rolling hash algorithm](https://en.wikipedia.org/wiki/Adler-32) in the [Rust programming language](https://www.rust-lang.org/). | ||
|
||
[Generated documentation](https://remram44.github.io/adler32-rs/index.html) |
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,12 @@ | ||
install: | ||
- ps: Start-FileDownload 'https://static.rust-lang.org/dist/rust-nightly-i686-pc-windows-gnu.exe' | ||
- rust-nightly-i686-pc-windows-gnu.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust" | ||
- set PATH=%PATH%;C:\Program Files (x86)\Rust\bin | ||
- rustc -V | ||
- cargo -V | ||
|
||
build: false | ||
|
||
test_script: | ||
- cargo build --verbose | ||
- cargo test --verbose |
Oops, something went wrong.