Initial commit
This commit is contained in:
		
							
								
								
									
										37
									
								
								scripts/PKGBUILD
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								scripts/PKGBUILD
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,37 @@ | ||||
| # Maintainer: Alexander Rosenberg <zanderpkg at pm dot me> | ||||
|  | ||||
| pkgname=curator | ||||
| pkgver=1 | ||||
| pkgrel=1 | ||||
| pkgdesc="A program for uploading images to Art Museum" | ||||
| url="https://gitlab.com/zander671/curator" | ||||
| arch=('i686' 'x86_64') | ||||
| license=('GPL3') | ||||
| depends=('ffmpeg') | ||||
| makedepends=('gradle' 'git') | ||||
| source=("git+https://gitlab.com/zander671/curator.git") | ||||
| sha256sums=('SKIP') | ||||
|  | ||||
| pkgver(){ | ||||
|   cd $pkgname | ||||
|   git rev-list --count HEAD | ||||
| } | ||||
|  | ||||
| build() { | ||||
|   cd "$srcdir/$pkgname" | ||||
|   gradle installDist | ||||
| } | ||||
|  | ||||
| package() { | ||||
|   cd "$srcdir/$pkgname" | ||||
|   mkdir -p "$pkgdir/usr/share" | ||||
|   cp -r build/install/curator "$pkgdir/usr/share/" | ||||
|   mkdir -p "$pkgdir/usr/bin" | ||||
|   ln -fs "/usr/share/curator/bin/curator" "$pkgdir/usr/bin/curator" | ||||
|   install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | ||||
|   install -m644 -D README.md "$pkgdir/usr/share/doc/$pkgname/README" | ||||
|   install -m644 -D scripts/linux/curator.xpm "$pkgdir/usr/share/pixmaps/curator.xpm" | ||||
|   install -m644 -D scripts/linux/curator.png "$pkgdir/usr/share/icons/hicolor/48x48/apps/curator.png" | ||||
|   install -m644 -D scripts/linux/curator.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/curator.svg" | ||||
|   install -m644 -D scripts/linux/curator.desktop "$pkgdir/usr/share/applications/curator.desktop" | ||||
| } | ||||
							
								
								
									
										55
									
								
								scripts/build-macos-app.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										55
									
								
								scripts/build-macos-app.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,55 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| echo 'Generating macos app bundle...' | ||||
|  | ||||
| realpath() { | ||||
|     path="$(ls "$PWD/$1")" | ||||
|     echo "$path" | ||||
| } | ||||
|  | ||||
| # Change our working directory to the parent directory of this script | ||||
| real_path="$(realpath "$0")" | ||||
| parent_dir="$(dirname "$real_path")" | ||||
| cd "$parent_dir" | ||||
|  | ||||
| if [ ! -e ../build/install/curator ]; then | ||||
|     echo "You must run 'gradle installDist' before this script!" 1>&2 | ||||
|     exit 1 | ||||
| fi | ||||
|  | ||||
| # Delete old app | ||||
| rm -rf ../build/macos/Curator.app | ||||
|  | ||||
| # Copy empty application | ||||
| mkdir -p ../build/macos/Curator.app/Contents/MacOS/ ../build/macos/Curator.app/Contents/Resources/ | ||||
|  | ||||
| # Copy Info.plist and icon | ||||
| cp macos/Info.plist ../build/macos/Curator.app/Contents/Info.plist | ||||
| cp macos/icon.icns ../build/macos/Curator.app/Contents/Resources/icon.icns | ||||
|  | ||||
| # Copy compiled app | ||||
| cp -r ../build/install/curator ../build/macos/Curator.app/Contents/MacOS/ | ||||
| rm ../build/macos/Curator.app/Contents/MacOS/curator/bin/curator.bat | ||||
|  | ||||
| echo "Compiling start script..." | ||||
| # Compile start script (required to make JFileChooser work) | ||||
| shc -r -f ../build/macos/Curator.app/Contents/MacOS/curator/bin/curator -o ../build/macos/Curator.app/Contents/MacOS/curator/bin/curator.x | ||||
| rm ../build/macos/Curator.app/Contents/MacOS/curator/bin/curator.x.c | ||||
| mv ../build/macos/Curator.app/Contents/MacOS/curator/bin/curator.x ../build/macos/Curator.app/Contents/MacOS/curator/bin/curator | ||||
|  | ||||
| # Build install image (if we are on a mac) | ||||
| echo 'Building intsall image...' | ||||
| if which hdiutil >/dev/null 2>/dev/null; then | ||||
|     # Set up temp dir | ||||
|     rm -rf ../build/tmp/macos | ||||
|     mkdir -p ../build/tmp/macos | ||||
|     cp -r ../build/macos/Curator.app ../build/tmp/macos/ | ||||
|     ln -s /Applications ../build/tmp/macos/Applications | ||||
|  | ||||
|     # Create image | ||||
|     hdiutil create -ov -volname "Curator" -srcfolder ../build/tmp/macos ../build/macos/Curator.dmg >/dev/null | ||||
| else | ||||
|     echo "hdiutil(1) not found! Can't build DMG image." | ||||
| fi | ||||
|  | ||||
| echo "App bundle generated in 'build/macos'!" | ||||
							
								
								
									
										11
									
								
								scripts/linux/curator.desktop
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								scripts/linux/curator.desktop
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | ||||
| [Desktop Entry] | ||||
| Name=Curator | ||||
| GenericName=Media Manager | ||||
| Comment=Manage photos uploaded to Art Museums instances | ||||
| Exec=curator | ||||
| Icon=curator | ||||
| Type=Application | ||||
| Terminal=false | ||||
| Categories=Graphics; | ||||
| StartupWMClass=Curator | ||||
| Keywords=Curator;Art Museum;Media; | ||||
							
								
								
									
										
											BIN
										
									
								
								scripts/linux/curator.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								scripts/linux/curator.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 1.1 KiB | 
							
								
								
									
										76
									
								
								scripts/linux/curator.svg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										76
									
								
								scripts/linux/curator.svg
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,76 @@ | ||||
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||||
| <svg | ||||
|    xmlns:dc="http://purl.org/dc/elements/1.1/" | ||||
|    xmlns:cc="http://creativecommons.org/ns#" | ||||
|    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||||
|    xmlns:svg="http://www.w3.org/2000/svg" | ||||
|    xmlns="http://www.w3.org/2000/svg" | ||||
|    xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" | ||||
|    xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" | ||||
|    width="500" | ||||
|    height="500" | ||||
|    viewBox="0 0 132.29166 132.29167" | ||||
|    version="1.1" | ||||
|    id="svg8" | ||||
|    inkscape:version="1.0.2 (e86c870879, 2021-01-15, custom)" | ||||
|    sodipodi:docname="logo.svg"> | ||||
|   <defs | ||||
|      id="defs2" /> | ||||
|   <sodipodi:namedview | ||||
|      id="base" | ||||
|      pagecolor="#ffffff" | ||||
|      bordercolor="#666666" | ||||
|      borderopacity="1.0" | ||||
|      inkscape:pageopacity="0.0" | ||||
|      inkscape:pageshadow="2" | ||||
|      inkscape:zoom="0.7" | ||||
|      inkscape:cx="-19.214582" | ||||
|      inkscape:cy="249.51869" | ||||
|      inkscape:document-units="mm" | ||||
|      inkscape:current-layer="layer1" | ||||
|      inkscape:document-rotation="0" | ||||
|      showgrid="false" | ||||
|      units="px" | ||||
|      inkscape:pagecheckerboard="true" | ||||
|      borderlayer="true" | ||||
|      inkscape:window-width="1280" | ||||
|      inkscape:window-height="739" | ||||
|      inkscape:window-x="0" | ||||
|      inkscape:window-y="0" | ||||
|      inkscape:window-maximized="1" /> | ||||
|   <metadata | ||||
|      id="metadata5"> | ||||
|     <rdf:RDF> | ||||
|       <cc:Work | ||||
|          rdf:about=""> | ||||
|         <dc:format>image/svg+xml</dc:format> | ||||
|         <dc:type | ||||
|            rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> | ||||
|         <dc:title></dc:title> | ||||
|       </cc:Work> | ||||
|     </rdf:RDF> | ||||
|   </metadata> | ||||
|   <g | ||||
|      inkscape:label="Frame" | ||||
|      inkscape:groupmode="layer" | ||||
|      id="layer1"> | ||||
|     <rect | ||||
|        style="opacity:0.996191;fill:#ffffff;fill-opacity:1;stroke:#c18f00;stroke-width:10;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" | ||||
|        id="rect848" | ||||
|        width="75.478668" | ||||
|        height="108.57991" | ||||
|        x="28.4065" | ||||
|        y="11.855878" /> | ||||
|     <text | ||||
|        xml:space="preserve" | ||||
|        style="font-style:normal;font-weight:normal;font-size:88.1944px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583" | ||||
|        x="35.26918" | ||||
|        y="98.249802" | ||||
|        id="text877"><tspan | ||||
|          sodipodi:role="line" | ||||
|          id="tspan875" | ||||
|          x="35.26918" | ||||
|          y="98.249802" | ||||
|          style="font-size:88.1944px;stroke-width:0.264583">C</tspan></text> | ||||
|   </g> | ||||
| </svg> | ||||
| After Width: | Height: | Size: 2.4 KiB | 
							
								
								
									
										104
									
								
								scripts/linux/curator.xpm
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										104
									
								
								scripts/linux/curator.xpm
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,104 @@ | ||||
| /* XPM */ | ||||
| static char *logo[] = { | ||||
| /* columns rows colors chars-per-pixel */ | ||||
| "32 32 66 1 ", | ||||
| "  c None", | ||||
| ". c #000000", | ||||
| "X c #020202", | ||||
| "o c #030303", | ||||
| "O c #060606", | ||||
| "+ c #090909", | ||||
| "@ c #0A0A0A", | ||||
| "# c #0D0D0D", | ||||
| "$ c #101010", | ||||
| "% c #131313", | ||||
| "& c #161616", | ||||
| "* c #191919", | ||||
| "= c #1B1B1B", | ||||
| "- c #222222", | ||||
| "; c #232323", | ||||
| ": c #242424", | ||||
| "> c #272727", | ||||
| ", c #2D2D2D", | ||||
| "< c #323232", | ||||
| "1 c #333333", | ||||
| "2 c #373737", | ||||
| "3 c #383838", | ||||
| "4 c #434343", | ||||
| "5 c #4E4E4E", | ||||
| "6 c #4F4F4F", | ||||
| "7 c #505050", | ||||
| "8 c #5E5E5E", | ||||
| "9 c #6A6A6A", | ||||
| "0 c #747474", | ||||
| "q c #757575", | ||||
| "w c #787878", | ||||
| "e c #797979", | ||||
| "r c #C18F00", | ||||
| "t c #878787", | ||||
| "y c #8A8A8A", | ||||
| "u c #909090", | ||||
| "i c #9F9F9F", | ||||
| "p c #A0A0A0", | ||||
| "a c #A2A2A2", | ||||
| "s c #A3A3A3", | ||||
| "d c #B6B6B6", | ||||
| "f c #B7B7B7", | ||||
| "g c #BABABA", | ||||
| "h c #BBBBBB", | ||||
| "j c #C0C0C0", | ||||
| "k c #C3C3C3", | ||||
| "l c #C4C4C4", | ||||
| "z c #CDCDCD", | ||||
| "x c #D0D0D0", | ||||
| "c c #D1D1D1", | ||||
| "v c #D2D2D2", | ||||
| "b c #D3D3D3", | ||||
| "n c #D5D5D5", | ||||
| "m c #DBDBDB", | ||||
| "M c #F5EDD5", | ||||
| "N c #FAF5E8", | ||||
| "B c #FAF6EA", | ||||
| "V c #F0F0F0", | ||||
| "C c #F1F1F1", | ||||
| "Z c #F4F4F4", | ||||
| "A c #F5F5F5", | ||||
| "S c #FBFBFB", | ||||
| "D c #FCFCFC", | ||||
| "F c #FDFDFD", | ||||
| "G c #FEFEFE", | ||||
| "H c #FFFFFF", | ||||
| /* pixels */ | ||||
| "                                ", | ||||
| "                                ", | ||||
| "      rrrrrrrrrrrrrrrrrrrr      ", | ||||
| "      rrrrrrrrrrrrrrrrrrrr      ", | ||||
| "      rrMNNNNNNNNNNNNNNMrr      ", | ||||
| "      rrNHHHHHHHHHHHHHHNrr      ", | ||||
| "      rrNHHHHHHHHHHHHHHNrr      ", | ||||
| "      rrNHHHHHHHHZHHHHHNrr      ", | ||||
| "      rrNHHHZj8-..@1tzHNrr      ", | ||||
| "      rrNHHHe*.$473#.>vNrr      ", | ||||
| "      rrNHZq.*aZHHHZu,hNrr      ", | ||||
| "      rrNHh&$iHHHHHHHvmNrr      ", | ||||
| "      rrNH5.9SHHHHHHHHHNrr      ", | ||||
| "      rrNS$.fHHHHHHHHHHNrr      ", | ||||
| "      rrNn..CHHHHHHHHHHNrr      ", | ||||
| "      rrNj.OHHHHHHHHHHHNrr      ", | ||||
| "      rrNl.OHHHHHHHHHHHNrr      ", | ||||
| "      rrNn..CHHHHHHHHHHNrr      ", | ||||
| "      rrNS$.fHHHHHHHHHHNrr      ", | ||||
| "      rrNH5.9SHHHHHHHHHNrr      ", | ||||
| "      rrNHh&$aHHHHHHHvmNrr      ", | ||||
| "      rrNHZq.*aZHHHZu,hNrr      ", | ||||
| "      rrNHHHe*.$462#.>vNrr      ", | ||||
| "      rrNHHHZj8-..@1yvHNrr      ", | ||||
| "      rrNHHHHHHHHZHHHHHNrr      ", | ||||
| "      rrNHHHHHHHHHHHHHHNrr      ", | ||||
| "      rrNHHHHHHHHHHHHHHNrr      ", | ||||
| "      rrMNNNNNNNNNNNNNNMrr      ", | ||||
| "      rrrrrrrrrrrrrrrrrrrr      ", | ||||
| "      rrrrrrrrrrrrrrrrrrrr      ", | ||||
| "                                ", | ||||
| "                                " | ||||
| }; | ||||
							
								
								
									
										45
									
								
								scripts/macos/Info.plist
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										45
									
								
								scripts/macos/Info.plist
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,45 @@ | ||||
| <?xml version="1.0" ?> | ||||
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||||
| <plist version="1.0"> | ||||
|     <dict> | ||||
|     <key>CFBundleDevelopmentRegion</key> | ||||
|     <string>English</string> | ||||
|  | ||||
|     <key>CFBundleExecutable</key> | ||||
|     <string>curator/bin/curator</string> | ||||
|  | ||||
|     <key>CFBundleIconFile</key> | ||||
|     <string>icon.icns</string> | ||||
|  | ||||
|     <key>CFBundleIdentifier</key> | ||||
|     <string>zander.curator</string> | ||||
|  | ||||
|     <key>CFBundleDisplayName</key> | ||||
|     <string>Curator</string> | ||||
|  | ||||
|     <key>CFBundleInfoDictionaryVersion</key> | ||||
|     <string>6.0</string> | ||||
|  | ||||
|     <key>CFBundleName</key> | ||||
|     <string>Curator</string> | ||||
|  | ||||
|     <key>CFBundlePackageType</key> | ||||
|     <string>APPL</string> | ||||
|  | ||||
|     <key>CFBundleVersion</key> | ||||
|     <string>1.0</string> | ||||
|  | ||||
|     <key>CFBundleShortVersionString</key> | ||||
|     <string>1.0</string> | ||||
|  | ||||
|     <key>CFBundleSignature</key> | ||||
|     <string>????</string> | ||||
|  | ||||
|     <key>CFBundleVersion</key> | ||||
|     <string>1.0</string> | ||||
|  | ||||
|     <key>NSHumanReadableCopyright</key> | ||||
|     <string>(c) 2021 Alexander Rosenberg</string> | ||||
|  | ||||
|     </dict> | ||||
| </plist> | ||||
							
								
								
									
										
											BIN
										
									
								
								scripts/macos/icon.icns
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								scripts/macos/icon.icns
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user