Skip to content

kozlown/my-softs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My-softs

My-softs is a softs installer generator for Linux. ✨ It generates a shell script installing the softs you previously selected. You can try it here ! 🏃

Contribute

You can (please do so ! :bowtie:) contribute to this project mostly by adding/modifying installers which are located in the /src/Softs folder. Watch below the installer template:

const mySoft = {
  name: 'My Soft',
  picture: 'my-soft.png', // icon which will be displayed on the website
  versions: [{
    name: '1.6.2914',
    allowedOs: ['Ubuntu 16.04']
  }, {
    name: '1.5.2871',
    allowedOs: ['Ubuntu 16.04']
  }], // all available versions
  script: ({ version, os }) => { // function which will generate the shell script depending of soft version and os
    switch (os) {
      case 'Ubuntu 16.04':
        return `
wget https://my-soft.com/download/my-soft-${version.name}.tar.gz
tar zxvf my-soft-${version.name}.tar.gz
mv my-soft-${version.name} /opt/
rm ./my-soft-${version.name}.tar.gz
ln -s /opt/my-soft-${version.name}/my-soft /usr/bin/my-soft
`
      default:
        throw new Error ('Invalid os')
    }
  }
}

export default mySoft

Licence

MIT © Nigel Kozlowski

Releases

No releases published

Packages

No packages published