Junk
This commit is contained in:
		
							parent
							
								
									9f6a131f11
								
							
						
					
					
						commit
						c43aed2fcd
					
				
					 4 changed files with 95 additions and 0 deletions
				
			
		
							
								
								
									
										14
									
								
								makefile
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								makefile
									
										
									
									
									
								
							|  | @ -1,6 +1,8 @@ | ||||||
| PROJECT = $(shell basename $(CURDIR)) | PROJECT = $(shell basename $(CURDIR)) | ||||||
| GITHASH = $(shell git rev-parse --short HEAD) | GITHASH = $(shell git rev-parse --short HEAD) | ||||||
| 
 | 
 | ||||||
|  | PROJ_NAME = iced-demo | ||||||
|  | 
 | ||||||
| debug: | debug: | ||||||
| 	cargo run | 	cargo run | ||||||
| 
 | 
 | ||||||
|  | @ -26,3 +28,15 @@ sign: release source-release | ||||||
| 
 | 
 | ||||||
| publish: sign | publish: sign | ||||||
| 	scp $(PROJECT)_$(GITHASH).tar.gz* $(PROJECT)_$(GITHASH)_source.tar.gz* server:/public/$(PROJECT)/ | 	scp $(PROJECT)_$(GITHASH).tar.gz* $(PROJECT)_$(GITHASH)_source.tar.gz* server:/public/$(PROJECT)/ | ||||||
|  | 
 | ||||||
|  | #cp packaging/$(PROJ_NAME).svg ~/.local/share/icons/
 | ||||||
|  | install: release | ||||||
|  | 	install -Dm755 target/release/$(PROJECT) ~/.local/bin/$(PROJ_NAME) | ||||||
|  | 	cp packaging/$(PROJ_NAME).desktop ~/.local/share/applications/ | ||||||
|  | 	update-desktop-database ~/.local/share/applications/ | ||||||
|  | 
 | ||||||
|  | uninstall: | ||||||
|  | 	rm -f ~/.local/bin/$(PROJ_NAME) | ||||||
|  | 	rm -f ~/.local/share/applications/$(PROJ_NAME).desktop | ||||||
|  | 	rm -f ~/.local/share/icons/$(PROJ_NAME).svg | ||||||
|  | 	update-desktop-database ~/.local/share/applications/ | ||||||
|  |  | ||||||
							
								
								
									
										11
									
								
								packaging/iced-demo.desktop
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								packaging/iced-demo.desktop
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | ||||||
|  | [Desktop Entry] | ||||||
|  | Type=Application | ||||||
|  | Name=Iced Demo | ||||||
|  | GenericName=Iced Demo | ||||||
|  | Comment=Iced Demo is a simple demo application | ||||||
|  | Categories=Utility | ||||||
|  | Path=/home/imbus/.local/bin | ||||||
|  | Exec=iced-demo | ||||||
|  | Icon=/home/imbus/.local/share/icons/iced-demo.svg | ||||||
|  | Terminal=false | ||||||
|  | Keywords=demo | ||||||
							
								
								
									
										17
									
								
								packaging/iced-demo.svg
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								packaging/iced-demo.svg
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,17 @@ | ||||||
|  | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||||||
|  | <!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --> | ||||||
|  | <svg width="800px" height="800px" viewBox="-0.5 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns"> | ||||||
|  |      | ||||||
|  |     <title>desktop</title> | ||||||
|  |     <desc>Created with Sketch Beta.</desc> | ||||||
|  |     <defs> | ||||||
|  | 
 | ||||||
|  | </defs> | ||||||
|  |     <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage"> | ||||||
|  |         <g id="Icon-Set-Filled" sketch:type="MSLayerGroup" transform="translate(-570.000000, -465.000000)" fill="#000000"> | ||||||
|  |             <path d="M597,465 L574,465 C571.791,465 570,466.791 570,469 L570,483 L601,483 L601,469 C601,466.791 599.209,465 597,465 L597,465 Z M570,487 C570,489.209 571.791,491 574,491 L597,491 C599.209,491 601,489.209 601,487 L601,485 L570,485 L570,487 L570,487 Z M592,495 L590,495 L590,493 L582,493 L582,495 L580,495 C579.447,495 579,495.448 579,496 C579,496.553 579.447,497 580,497 L592,497 C592.553,497 593,496.553 593,496 C593,495.448 592.553,495 592,495 L592,495 Z" id="desktop" sketch:type="MSShapeGroup"> | ||||||
|  | 
 | ||||||
|  | </path> | ||||||
|  |         </g> | ||||||
|  |     </g> | ||||||
|  | </svg> | ||||||
| After Width: | Height: | Size: 1.2 KiB | 
							
								
								
									
										53
									
								
								packaging/iced_demo.spec
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								packaging/iced_demo.spec
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,53 @@ | ||||||
|  | # Generated by rust2rpm 26 | ||||||
|  | %bcond_without check | ||||||
|  | 
 | ||||||
|  | # prevent library files from being installed | ||||||
|  | %global cargo_install_lib 0 | ||||||
|  | 
 | ||||||
|  | Name:           iced_demo | ||||||
|  | Version:        0.1.0 | ||||||
|  | Release:        %autorelease | ||||||
|  | Summary:        A demo application using the Iced toolkit | ||||||
|  | 
 | ||||||
|  | SourceLicense:  MIT | ||||||
|  | # FIXME: paste output of %%cargo_license_summary here | ||||||
|  | License:        MIT | ||||||
|  | # LICENSE.dependencies contains a full license breakdown | ||||||
|  | 
 | ||||||
|  | URL:            https://git.silversoft.se/Imbus/iced_demo | ||||||
|  | Source:         %{url}/archive/%{version}.tar.gz | ||||||
|  | 
 | ||||||
|  | BuildRequires:  cargo-rpm-macros >= 26 | ||||||
|  | 
 | ||||||
|  | %global _description %{expand: | ||||||
|  | %{summary}.} | ||||||
|  | 
 | ||||||
|  | %description %{_description} | ||||||
|  | 
 | ||||||
|  | %prep | ||||||
|  | %autosetup -n %{crate}-%{version} -p1 | ||||||
|  | %cargo_prep | ||||||
|  | 
 | ||||||
|  | %generate_buildrequires | ||||||
|  | %cargo_generate_buildrequires | ||||||
|  | 
 | ||||||
|  | %build | ||||||
|  | %cargo_build | ||||||
|  | %{cargo_license_summary} | ||||||
|  | %{cargo_license} > LICENSE.dependencies | ||||||
|  | 
 | ||||||
|  | %install | ||||||
|  | %cargo_install | ||||||
|  | 
 | ||||||
|  | %if %{with check} | ||||||
|  | %check | ||||||
|  | %cargo_test | ||||||
|  | %endif | ||||||
|  | 
 | ||||||
|  | %files | ||||||
|  | %license LICENSE.md | ||||||
|  | %license LICENSE.dependencies | ||||||
|  | %{_bindir}/iced_demo | ||||||
|  | 
 | ||||||
|  | %changelog | ||||||
|  | %autochangelog | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Imbus
						Imbus