Code Monkey home page Code Monkey logo

Comments (2)

rharmonson avatar rharmonson commented on June 12, 2024 1

Perfect! Thank you. I will use the new release and capture your instructions and script for future use.

Very helpful and appreciate the speedy response.

I planned to adapt it and just include it in the "tools" folder then got lost into work 😆

Happens to me all the time. So easy to get distracted by the next problem or feature.

from nordzy-icon.

alvatip avatar alvatip commented on June 12, 2024

I created release 1.8.6 which should fix this 😉
To create theses release file, I first install all the themes ./install.sh --total on my computer
Then run the following script (note, some path are hardocded eg: project is located in $HOME/GitHub/Nordzy-icon) I planned to adapt it and just include it in the "tools" folder then got lost into work 😆

#!/bin/bash
# helps create archives .tar.gz of github icons project to the right place.

project="Nordzy-icon"

# If project exist in my github folder
# if [ -d $HOME/GitHub/${project}/archives/ ]
if [ -d $HOME/GitHub/${project}/ ]
then
	# Delete existing archives
	# rm -rv $HOME/GitHub/${project}/archives/*
	cd $HOME/.local/share/icons/
	for icon in Nordzy*
	do
		# Create new one
		if [[ ${icon} = *-dark ]]
		then
			light_icon=${icon%-dark}
			rm -r ${icon}/animations*
		    rm -r ${icon}/categories/32
		    rm -r ${icon}/emblems/16
		    rm -r ${icon}/emblems/22
		    rm -r ${icon}/emblems/24
		    rm -r ${icon}/mimes/16
		    rm -r ${icon}/mimes/22
		    rm -r ${icon}/mimes/scalable
		    rm -r ${icon}/apps/scalable
		    rm -r ${icon}/devices/scalable
		    rm -r ${icon}/places/scalable
		    rm -r ${icon}/status/32
		    rm -r ${icon}/status/scalable

		    cp -r ${light_icon}/animations* 		${icon}/
		    cp -r ${light_icon}/categories/32 		${icon}/categories/
		    cp -r ${light_icon}/emblems/16 			${icon}/emblems/
		    cp -r ${light_icon}/emblems/22 			${icon}/emblems/
		    cp -r ${light_icon}/emblems/24 			${icon}/emblems/
		    cp -r ${light_icon}/mimes/16 			${icon}/mimes/
		    cp -r ${light_icon}/mimes/22 			${icon}/mimes/
		    cp -r ${light_icon}/mimes/scalable 		${icon}/mimes/
		    cp -r ${light_icon}/apps/scalable 		${icon}/apps/
		    cp -r ${light_icon}/devices/scalable 	${icon}/devices/
		    cp -r ${light_icon}/places/scalable 	${icon}/places/
		    cp -r ${light_icon}/status/32 			${icon}/status/
		    cp -r ${light_icon}/status/scalable 	${icon}/status/
		fi
		# cd ${icon}
		tar -zcf "${icon}.tar.gz" ${icon}
		# mv -v "${icon}.tar.gz" $HOME/GitHub/${project}/archives/
		mv -v "${icon}.tar.gz" $HOME/Downloads/
		# cd ../
	done
else
	echo "The specified directory does not exist"
fi

from nordzy-icon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.