mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-30 16:44:59 +00:00
refactor: rewrite all build scripts
* supports generate rpm package on Linux * use a global VERSION file
This commit is contained in:
parent
de5a60c6dd
commit
7f7e5ef5f8
11 changed files with 102 additions and 54 deletions
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
|
@ -1,26 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>App.icns</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.sourcegit-scm.sourcegit</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>SourceGit</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>8.8.0</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>10.12</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>SourceGit</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>8.8</string>
|
||||
<key>NSHighResolutionCapable</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>App.icns</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.sourcegit-scm.sourcegit</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>SourceGit</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>SOURCE_GIT_VERSION.0</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>10.12</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>SourceGit</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>SOURCE_GIT_VERSION</string>
|
||||
<key>NSHighResolutionCapable</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
31
build/resources/rpm/SPECS/build.spec
Normal file
31
build/resources/rpm/SPECS/build.spec
Normal file
|
@ -0,0 +1,31 @@
|
|||
Name: sourcegit
|
||||
Version: %_version
|
||||
Release: 1
|
||||
Summary: Open-source & Free Git Gui Client
|
||||
License: MIT
|
||||
URL: https://sourcegit-scm.github.io/
|
||||
Source: https://github.com/sourcegit-scm/sourcegit/archive/refs/tags/v%_version.tar.gz
|
||||
Requires: libX11.so.6
|
||||
Requires: libSM.so.6
|
||||
|
||||
%define _build_id_links none
|
||||
|
||||
%description
|
||||
Open-source & Free Git Gui Client
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/opt/sourcegit
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/bin
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/share/applications
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/share/icons
|
||||
cp -r ../../_common/usr $RPM_BUILD_ROOT/
|
||||
cp -f ../../../SourceGit/* $RPM_BUILD_ROOT/opt/sourcegit/
|
||||
chmod 755 -R $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
/opt
|
||||
/usr/bin
|
||||
/usr/share
|
||||
|
||||
%changelog
|
||||
# skip
|
Loading…
Add table
Add a link
Reference in a new issue