-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* replace usage of .ui files with .py ones * Add pipeline * Add windwos release * Add material for .deb packages * Add .deb packaging * Add icons to executables
- Loading branch information
1 parent
0099c31
commit af32cb6
Showing
20 changed files
with
1,260 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Package: bi-creator | ||
Version: ${ver} | ||
Installed-Size: ${size} | ||
Maintainer: Roman Tolstosheyev <[email protected]> | ||
Source: https://github.com/BreathOS/bi-creator | ||
Homepage: https://breathos.github.io/ | ||
Depends: libc6 (>= 2.29) | ||
Architecture: amd64 | ||
Priority: optional | ||
Description: Suitcase creator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash -e | ||
ln -fs /usr/share/bi-creator/bi-creator-linux /usr/bin/bi-creator | ||
chmod a+x /usr/share/bi-creator/bi-creator-linux |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash -e | ||
rm /usr/bin/bi-creator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Desktop Entry] | ||
Name=Bi Creator | ||
Version=1.0 | ||
Exec=bi-creator | ||
Comment=Suitcase Creator | ||
Icon=bi-creator | ||
Type=Application | ||
Terminal=false | ||
StartupNotify=true | ||
Encoding=UTF-8 | ||
Categories=System; |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, windows-2019] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
|
||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: '3.7.9' | ||
|
||
- name: Get the version | ||
id: get_version | ||
shell: bash | ||
run: | | ||
VERSION=${GITHUB_REF/refs\/tags\//} | ||
echo ::set-output name=VERSION::$VERSION | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pyinstaller | ||
pip install -r requirements.txt | ||
- name: Build Linux executable | ||
if: matrix.os == 'ubuntu-20.04' | ||
run: | | ||
pyinstaller main.py --onefile --name bi-creator --icon=.ci/icon.ico | ||
mv ${{ github.workspace }}/dist/bi-creator ${{ github.workspace }}/dist/bi-creator-linux | ||
- name: Build .deb package | ||
if: matrix.os == 'ubuntu-20.04' | ||
run: | | ||
pkgname="bi-creator-${{ steps.get_version.outputs.VERSION }}-amd64" | ||
echo "::set-output name=pkgname::${pkgname}" | ||
mkdir ${pkgname}/ | ||
cd ${pkgname}/ | ||
mkdir -p usr/share/applications/ | ||
cp ${{ github.workspace }}/.ci/bi-creator.desktop ./usr/share/applications/ | ||
mkdir -p ./usr/share/bi-creator | ||
cp ${{ github.workspace }}/dist/bi-creator-linux ./usr/share/bi-creator | ||
mkdir -p ./usr/share/doc/bi-creator | ||
cp ${{ github.workspace }}/.ci/copyright ./usr/share/doc/bi-creator | ||
mkdir -p usr/share/icons/ | ||
cp ${{ github.workspace }}/.ci/icon.png ./usr/share/icons/bi-creator.png | ||
cd ${{ github.workspace }}/${pkgname} | ||
cp -r ${{ github.workspace }}/.ci/DEBIAN . | ||
sudo apt install md5deep | ||
md5deep -rl usr/ > ./DEBIAN/md5sums | ||
cd DEBIAN | ||
chmod 775 p* | ||
sed -i "s/\${ver}/${{ steps.get_version.outputs.VERSION }}/" control | ||
SIZE=$(du -s ../../${pkgname}/ | cut -f1) | ||
sed -i "s/\${size}/${SIZE}/" control | ||
cd ${{ github.workspace }}/ | ||
fakeroot dpkg-deb --build ${pkgname} | ||
- name: Build Windows executable | ||
if: matrix.os == 'windows-2019' | ||
run: | | ||
pyinstaller main.py --onefile --name bi-creator --icon=.ci/icon.ico --noconsole | ||
move ${{ github.workspace }}/dist/bi-creator.exe ${{ github.workspace }}/dist/bi-creator-win.exe | ||
- name: Create Linux executable release | ||
if: matrix.os == 'ubuntu-20.04' | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: ${{ github.workspace }}/dist/bi-creator-linux | ||
name: Bi Creator ${{steps.get_version.outputs.VERSION}} | ||
draft: false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Create .deb package release release | ||
if: matrix.os == 'ubuntu-20.04' | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: ${{ github.workspace }}/*.deb | ||
name: Bi Creator ${{steps.get_version.outputs.VERSION}} | ||
draft: false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Create Windows executable release | ||
if: matrix.os == 'windows-2019' | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: ${{ github.workspace }}/dist/bi-creator-win.exe | ||
name: Bi Creator ${{steps.get_version.outputs.VERSION}} | ||
draft: false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# Form implementation generated from reading ui file 'file.ui' | ||
# | ||
# Created by: PyQt6 UI code generator 6.1.1 | ||
# | ||
# WARNING: Any manual changes made to this file will be lost when pyuic6 is | ||
# run again. Do not edit this file unless you know what you are doing. | ||
|
||
|
||
from PyQt6 import QtCore, QtGui, QtWidgets | ||
|
||
|
||
class Ui_AddFileMenu(object): | ||
def setupUi(self, AddFileMenu): | ||
AddFileMenu.setObjectName("AddFileMenu") | ||
AddFileMenu.resize(453, 216) | ||
self.gridLayout = QtWidgets.QGridLayout(AddFileMenu) | ||
self.gridLayout.setObjectName("gridLayout") | ||
self.verticalLayout = QtWidgets.QVBoxLayout() | ||
self.verticalLayout.setObjectName("verticalLayout") | ||
self.formLayout = QtWidgets.QFormLayout() | ||
self.formLayout.setObjectName("formLayout") | ||
self.chooseFileButton = QtWidgets.QPushButton(AddFileMenu) | ||
self.chooseFileButton.setObjectName("chooseFileButton") | ||
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.chooseFileButton) | ||
self.filePath = QtWidgets.QLineEdit(AddFileMenu) | ||
self.filePath.setObjectName("filePath") | ||
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.filePath) | ||
self.label_2 = QtWidgets.QLabel(AddFileMenu) | ||
self.label_2.setObjectName("label_2") | ||
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_2) | ||
self.destinationPath = QtWidgets.QLineEdit(AddFileMenu) | ||
self.destinationPath.setObjectName("destinationPath") | ||
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.destinationPath) | ||
self.label_4 = QtWidgets.QLabel(AddFileMenu) | ||
self.label_4.setObjectName("label_4") | ||
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_4) | ||
self.description = QtWidgets.QLineEdit(AddFileMenu) | ||
self.description.setObjectName("description") | ||
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.description) | ||
self.verticalLayout.addLayout(self.formLayout) | ||
self.useHome = QtWidgets.QCheckBox(AddFileMenu) | ||
self.useHome.setChecked(True) | ||
self.useHome.setObjectName("useHome") | ||
self.verticalLayout.addWidget(self.useHome) | ||
self.isRequired = QtWidgets.QCheckBox(AddFileMenu) | ||
self.isRequired.setChecked(True) | ||
self.isRequired.setObjectName("isRequired") | ||
self.verticalLayout.addWidget(self.isRequired) | ||
self.horizontalLayout = QtWidgets.QHBoxLayout() | ||
self.horizontalLayout.setObjectName("horizontalLayout") | ||
self.cancelButton = QtWidgets.QPushButton(AddFileMenu) | ||
self.cancelButton.setObjectName("cancelButton") | ||
self.horizontalLayout.addWidget(self.cancelButton) | ||
self.addFile = QtWidgets.QPushButton(AddFileMenu) | ||
self.addFile.setObjectName("addFile") | ||
self.horizontalLayout.addWidget(self.addFile) | ||
self.verticalLayout.addLayout(self.horizontalLayout) | ||
self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1) | ||
|
||
self.retranslateUi(AddFileMenu) | ||
QtCore.QMetaObject.connectSlotsByName(AddFileMenu) | ||
|
||
def retranslateUi(self, AddFileMenu): | ||
_translate = QtCore.QCoreApplication.translate | ||
AddFileMenu.setWindowTitle(_translate("AddFileMenu", "Add file")) | ||
self.chooseFileButton.setText(_translate("AddFileMenu", "Choose file")) | ||
self.label_2.setText(_translate("AddFileMenu", "Destination file")) | ||
self.label_4.setText(_translate("AddFileMenu", "Description")) | ||
self.useHome.setText(_translate("AddFileMenu", "Use home folder as root")) | ||
self.isRequired.setText(_translate("AddFileMenu", "Required")) | ||
self.cancelButton.setText(_translate("AddFileMenu", "Cancel")) | ||
self.addFile.setText(_translate("AddFileMenu", "Add")) | ||
|
||
|
||
if __name__ == "__main__": | ||
import sys | ||
app = QtWidgets.QApplication(sys.argv) | ||
AddFileMenu = QtWidgets.QWidget() | ||
ui = Ui_AddFileMenu() | ||
ui.setupUi(AddFileMenu) | ||
AddFileMenu.show() | ||
sys.exit(app.exec()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.