This is a small script to replace all icons from apps when I update them.
bigsurify's Introduction
bigsurify's People
bigsurify's Issues
Implement a better icon cache cleaning?
Perhaps I can check how this guys are doing it:
https://github.com/rikumi/iconsur/blob/eadd1acb705ab3cf3fa13f7355bee06307371e4b/src/index.js#L217
program.command('cache').action(() => {
try {
cp.execSync('sudo rm -rf /Library/Caches/com.apple.iconservices.store', { stdio: 'ignore' });
} catch (e) { }
try {
cp.execSync('sudo find /private/var/folders/ \\( -name com.apple.dock.iconcache -or -name com.apple.iconservices \\) -exec rm -rf {} \\;', { stdio: 'ignore' });
} catch (e) { }
try {
cp.execSync('sleep 3; sudo touch /Applications/*', { stdio: 'ignore' });
} catch (e) { }
try {
cp.execSync('killall Dock', { stdio: 'ignore' });
} catch (e) { }
try {
cp.execSync('killall Finder', { stdio: 'ignore' });
} catch (e) { }
process.exit();
});
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.