0.1.2 • Published 1 month ago

kylin-bundle-script v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

Kylin bundle script

Build the deb installation package script of kylin OS for electron-builder

config

/*
├── DEBIAN
│   └── control
├── opt
│   └── ${appName}
      ---- ${exec files, named appId}
└── usr
    └── share
        ├── applications
        // │   └── ${appId}.desktop
        └── icons
            └── hicolor
                └── scalable
                    └── apps
                        // └── ${appId}.svg
*/
buildKylin({
  appName: 'godan',
  appId: 'com.electron.godan',
  unpackedDir: join(__dirname, 'static', 'linux-arm64-unpacked'),
  outputPath: join(__dirname, 'output'),
  version: '0.1.0',
  controlFile: {
    Package: 'godan',
    Version: '0.1.0',
    Architecture: 'arm64',
    Maintainer: 'test<godan@mail.com>',
    Description: 'test description',
  },
  desktopFile: {
    Name: 'godan',
    'Name[zh_CN]': 'godan',
    Exec: '/opt/godan/com.electron.godan/electron-godan --no-sandbox', // TODO: how to get this?
    Icon: 'godan',
    Type: 'Application',
  },
  svgPath: join(__dirname, 'static', 'icon.svg'),
});
/*
output
├── godan_0.1.0
│   ├── DEBIAN
│   │   ├── compat
│   │   └── control
│   ├── opt
│   │   └── godan
│   │       └── com.electron.godan
│   └── usr
│       └── share
│           ├── applications
│           └── icons
└── godan_0.1.0_arm64.deb
*/ 
0.1.2

1 month ago

0.1.1

6 months ago

0.1.0

6 months ago