mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
[misc] add build data for Windows Apps Store
* Rather useless, since elevated apps are neither accepted by Microsoft nor will they run by default when sideloaded. But, hey, I can has apps! * Also update sign and sed scripts
This commit is contained in:
parent
aec2736245
commit
3924d2847d
10 changed files with 103 additions and 26 deletions
|
@ -26,20 +26,16 @@ echo "setting micro to $TAGVER"
|
|||
echo $TAGVER > .tag
|
||||
|
||||
cat > cmd.sed <<\_EOF
|
||||
s/^[ \t]*FILEVERSION[ \t]*\(.*\),\(.*\),.*,\(.*\)/ FILEVERSION \1,\2,@@TAGVER@@,\3/
|
||||
s/^[ \t]*PRODUCTVERSION[ \t]*\(.*\),\(.*\),.*,\(.*\)/ PRODUCTVERSION \1,\2,@@TAGVER@@,\3/
|
||||
s/^\([ \t]*\)VALUE[ \t]*"FileVersion",[ \t]*"\(.*\)\..*"/\1VALUE "FileVersion", "\2.@@TAGVER@@"/
|
||||
s/^\([ \t]*\)VALUE[ \t]*"ProductVersion",[ \t]*"\(.*\)\..*"/\1VALUE "ProductVersion", "\2.@@TAGVER@@"/
|
||||
s/^\([ \t]*\)*\(FILE\|PRODUCT\)VERSION\([ \t]*\)\([0-9]*\),\([0-9]*\),[0-9]*,\(.*\)/\1\2VERSION\3\4,\5,@@TAGVER@@,\6/
|
||||
s/^\([ \t]*\)VALUE\([ \t]*\)"\(File\|Product\)Version",\([ \t]*\)"\(.*\)\..*"[ \t]*/\1VALUE\2"\3Version",\4"\5.@@TAGVER@@"/
|
||||
s/^\(.*\)"Rufus \(.*\)\..*"\(.*\)/\1"Rufus \2.@@TAGVER@@"\3/
|
||||
s/^\([ \t]*\)Version="\([0-9]*\)\.\([0-9]*\)\.[0-9]*\.\([0-9]*\)"\(.*\)/\1Version="\2.\3.@@TAGVER@@.\4"\5/
|
||||
_EOF
|
||||
|
||||
# First run sed to substitute our variable in the sed command file
|
||||
sed -i -e "s/@@TAGVER@@/$TAGVER/g" cmd.sed
|
||||
|
||||
# Run sed to update the nano version
|
||||
sed -i -f cmd.sed src/rufus.rc
|
||||
# MinGW's sed has the bad habit of eating CRLFs - make sure we keep 'em
|
||||
sed -i 's/$/\r/' src/rufus.rc
|
||||
sed -b -i -f cmd.sed src/rufus.rc
|
||||
# NB: we need to run git add else the modified files may be ignored
|
||||
git add src/rufus.rc
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue