mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-04 05:50:15 +00:00
Remove scripts/ subdirectory
This commit is contained in:
parent
28cfa9790f
commit
ff93400c4e
@ -1,27 +0,0 @@
|
|||||||
#! /bin/sh
|
|
||||||
|
|
||||||
dir="`pwd`"
|
|
||||||
version=$(cat ../src/config.h | grep VERSION | sed -e 's/.*\"\(.*\)\"/\1/g')
|
|
||||||
distdir=Aseprite-$version
|
|
||||||
|
|
||||||
if [ ! -f create_dmg.sh ]; then
|
|
||||||
echo You must run create_dmg.sh from scripts/ directory
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -f $distdir.dmg ] ; then
|
|
||||||
cd "$dir/.."
|
|
||||||
mkdir "$dir/$distdir"
|
|
||||||
mkdir "$dir/$distdir/aseprite.app"
|
|
||||||
mkdir "$dir/$distdir/aseprite.app/Contents"
|
|
||||||
mkdir "$dir/$distdir/aseprite.app/Contents/MacOS"
|
|
||||||
mkdir "$dir/$distdir/aseprite.app/Contents/Resources"
|
|
||||||
cp -R LICENSE.txt docs "$dir/$distdir"
|
|
||||||
cp -R aseprite "$dir/$distdir/aseprite.app/Contents/MacOS"
|
|
||||||
cp -R "$dir/macosx/Info.plist" "$dir/$distdir/aseprite.app/Contents"
|
|
||||||
cp -R data "$dir/macosx/aseprite.icns" "$dir/$distdir/aseprite.app/Contents/Resources"
|
|
||||||
cd "$dir"
|
|
||||||
|
|
||||||
hdiutil create "$distdir.dmg" -srcfolder "$distdir"
|
|
||||||
rm -fr $distdir
|
|
||||||
fi
|
|
@ -1,101 +0,0 @@
|
|||||||
#! /bin/sh
|
|
||||||
|
|
||||||
dir="`pwd`"
|
|
||||||
version=$(cat ../src/config.h | grep VERSION | sed -e 's/.*\"\(.*\)\"/\1/g')
|
|
||||||
distdir=aseprite-$version
|
|
||||||
zip="zip -9"
|
|
||||||
zip_recursive_flag="-r"
|
|
||||||
|
|
||||||
if [ ! -f create_packages.sh ]; then
|
|
||||||
echo You must run create_packages.sh from scripts/ directory
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
######################################################################
|
|
||||||
# Full source distribution (with 3rd party code)
|
|
||||||
|
|
||||||
if [ ! -f $distdir.zip ] ; then
|
|
||||||
cd "$dir/.."
|
|
||||||
mkdir "$dir/$distdir"
|
|
||||||
cp --parents $(git ls-files) "$dir/$distdir"
|
|
||||||
cd "$dir"
|
|
||||||
|
|
||||||
$zip $zip_recursive_flag $distdir.zip $distdir
|
|
||||||
rm -fr $distdir
|
|
||||||
fi
|
|
||||||
|
|
||||||
#####################################################################
|
|
||||||
# Minimal source distribution (without 3rd party code).
|
|
||||||
# Used to compile ASEPRITE with shared libraries.
|
|
||||||
|
|
||||||
if [ ! -f $distdir.tar.xz ] ; then
|
|
||||||
cd "$dir/.."
|
|
||||||
mkdir "$dir/$distdir"
|
|
||||||
cp --parents $(git ls-files | grep -v -e ^third_party | grep -v -e ^src/allegro | grep -v -e ^scripts) "$dir/$distdir"
|
|
||||||
cp --parents third_party/CMakeLists.txt "$dir/$distdir"
|
|
||||||
cd "$dir"
|
|
||||||
|
|
||||||
tar vcfJ $distdir.tar.xz $distdir
|
|
||||||
rm -fr $distdir
|
|
||||||
fi
|
|
||||||
|
|
||||||
######################################################################
|
|
||||||
# Files for binary distributions
|
|
||||||
|
|
||||||
function def_common_files()
|
|
||||||
{
|
|
||||||
txt_files=" \
|
|
||||||
$1/README.html \
|
|
||||||
$1/LICENSE.txt \
|
|
||||||
$1/data/convmatr.def \
|
|
||||||
$1/data/*.xml \
|
|
||||||
$1/docs/files/*.txt \
|
|
||||||
$1/docs/licenses/*.txt \
|
|
||||||
$1/data/widgets/*.xml"
|
|
||||||
|
|
||||||
bin_files=" \
|
|
||||||
$1/data/palettes/*.gpl \
|
|
||||||
$1/data/icons/ase*.ico \
|
|
||||||
$1/data/icons/ase*.png \
|
|
||||||
$1/data/skins/*/*.png \
|
|
||||||
$1/data/skins/*/*.xml \
|
|
||||||
$1/docs/*.pdf"
|
|
||||||
}
|
|
||||||
|
|
||||||
######################################################################
|
|
||||||
# Win32 Distribution
|
|
||||||
|
|
||||||
if [ ! -f $distdir-win32.zip ] ; then
|
|
||||||
|
|
||||||
cd "$dir/.."
|
|
||||||
def_common_files .
|
|
||||||
mkdir "$dir/$distdir-win32"
|
|
||||||
|
|
||||||
# Generate README.html
|
|
||||||
pandoc README.md -o README.html
|
|
||||||
|
|
||||||
# For Allegro dll / C Runtime dll
|
|
||||||
#cp -r --parents $txt_files $bin_files aseprite.exe alleg44.dll msvcr90.dll "$dir/$distdir-win32"
|
|
||||||
|
|
||||||
# For Allegro static / static C runtime dll (use /MT to compile Allegro)
|
|
||||||
cp -r --parents $txt_files $bin_files aseprite.exe "$dir/$distdir-win32"
|
|
||||||
|
|
||||||
# Remove README.html
|
|
||||||
rm README.html
|
|
||||||
|
|
||||||
cd "$dir"
|
|
||||||
def_common_files $distdir-win32
|
|
||||||
$zip -l $distdir-win32.zip $txt_files
|
|
||||||
|
|
||||||
# Dynamic version of DLLs
|
|
||||||
#$zip $distdir-win32.zip $bin_files \
|
|
||||||
# $distdir-win32/aseprite.exe \
|
|
||||||
# $distdir-win32/alleg44.dll \
|
|
||||||
# $distdir-win32/msvcr90.dll
|
|
||||||
|
|
||||||
# Static version
|
|
||||||
$zip $distdir-win32.zip $bin_files \
|
|
||||||
$distdir-win32/aseprite.exe
|
|
||||||
|
|
||||||
rm -fr $distdir-win32
|
|
||||||
fi
|
|
@ -1,105 +0,0 @@
|
|||||||
#! /bin/sh
|
|
||||||
|
|
||||||
echo -n "Where is Aseprite source code? "
|
|
||||||
read srcdir
|
|
||||||
|
|
||||||
echo -n "What version to release (e.g. 0.9.1-beta) ? "
|
|
||||||
read version
|
|
||||||
|
|
||||||
echo -n "What kind of distribution (e.g. production, trial) ? "
|
|
||||||
read distribution
|
|
||||||
|
|
||||||
echo -n "What platform (e.g. win, mac) ? "
|
|
||||||
read platform
|
|
||||||
|
|
||||||
destdir=$(pwd)/aseprite-release-$version
|
|
||||||
|
|
||||||
if [ "$platform" == "win" ]; then
|
|
||||||
exefile=aseprite.exe
|
|
||||||
generator=ninja
|
|
||||||
elif [ "$platform" == "mac" ]; then
|
|
||||||
exefile=aseprite
|
|
||||||
generator="make -j4"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# --------------------------
|
|
||||||
# Clone the local repository
|
|
||||||
# --------------------------
|
|
||||||
|
|
||||||
if [ ! -d "$destdir" ] ; then
|
|
||||||
git clone --depth=1 "$srcdir" "$destdir"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# --------------
|
|
||||||
# Update version
|
|
||||||
# --------------
|
|
||||||
|
|
||||||
cd "$destdir/scripts"
|
|
||||||
sh $srcdir/scripts/update_version.sh $version
|
|
||||||
|
|
||||||
# ----------------------------------------------
|
|
||||||
# Make a build/ directory and compile with cmake
|
|
||||||
# ----------------------------------------------
|
|
||||||
|
|
||||||
if [ ! -d "$destdir/build" ] ; then
|
|
||||||
mkdir "$destdir/build"
|
|
||||||
cd "$destdir/build"
|
|
||||||
|
|
||||||
if [ "$platform" == "win" ]; then
|
|
||||||
if [ "$distribution" == "production" ]; then
|
|
||||||
cmake \
|
|
||||||
-D "CMAKE_BUILD_TYPE:STRING=RelWithDebInfo" \
|
|
||||||
-D "CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING = /Zi /MT /O2 /Ob1 /D NDEBUG" \
|
|
||||||
-D "CMAKE_C_FLAGS_RELWITHDEBINFO:STRING = /Zi /MT /O2 /Ob1 /D NDEBUG" \
|
|
||||||
-D "CMAKE_EXE_LINKER_FLAGS:STRING = /MACHINE:X86 /SUBSYSTEM:WINDOWS,5.01" \
|
|
||||||
-G "Ninja" \
|
|
||||||
..
|
|
||||||
elif [ "$distribution" == "trial" ]; then
|
|
||||||
cmake \
|
|
||||||
-D "CMAKE_BUILD_TYPE:STRING=RelWithDebInfo" \
|
|
||||||
-D "CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING = /Zi /MT /O2 /Ob1 /D NDEBUG" \
|
|
||||||
-D "CMAKE_C_FLAGS_RELWITHDEBINFO:STRING = /Zi /MT /O2 /Ob1 /D NDEBUG" \
|
|
||||||
-D "CMAKE_EXE_LINKER_FLAGS:STRING = /MACHINE:X86 /SUBSYSTEM:WINDOWS,5.01" \
|
|
||||||
-D "ENABLE_TRIAL_MODE:BOOL=ON" \
|
|
||||||
-G "Ninja" \
|
|
||||||
..
|
|
||||||
fi
|
|
||||||
elif [ "$platform" == "mac" ]; then
|
|
||||||
if [ "$distribution" == "production" ]; then
|
|
||||||
cmake \
|
|
||||||
-D "CMAKE_BUILD_TYPE:STRING=RelWithDebInfo" \
|
|
||||||
-G "Unix Makefiles" \
|
|
||||||
..
|
|
||||||
elif [ "$distribution" == "trial" ]; then
|
|
||||||
cmake \
|
|
||||||
-D "CMAKE_BUILD_TYPE:STRING=RelWithDebInfo" \
|
|
||||||
-D "ENABLE_TRIAL_MODE:BOOL=ON" \
|
|
||||||
-G "Unix Makefiles" \
|
|
||||||
..
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# -------
|
|
||||||
# Compile
|
|
||||||
# -------
|
|
||||||
|
|
||||||
if [ ! -f "$destdir/$exefile" ] ; then
|
|
||||||
cd "$destdir/build"
|
|
||||||
$generator aseprite
|
|
||||||
|
|
||||||
cd "$destdir/build/src"
|
|
||||||
signexe $exefile
|
|
||||||
cp $exefile "$destdir"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ---------------
|
|
||||||
# Create packages
|
|
||||||
# ---------------
|
|
||||||
|
|
||||||
cd "$destdir/scripts"
|
|
||||||
if [ "$platform" == "win" ]; then
|
|
||||||
sh create_packages.sh
|
|
||||||
elif [ "$platform" == "mac" ]; then
|
|
||||||
sh create_dmg.sh
|
|
||||||
fi
|
|
@ -1,8 +0,0 @@
|
|||||||
#! /bin/sh
|
|
||||||
|
|
||||||
find src third_party \
|
|
||||||
\( -name '*.[ch]' -o -name '*.cpp' \) -print | \
|
|
||||||
sed -e "/_old/D" | \
|
|
||||||
etags -
|
|
||||||
|
|
||||||
ebrowse $(find src \( -name '*.h' -o -name '*.cpp' \) -print)
|
|
@ -1,24 +0,0 @@
|
|||||||
<?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>CFBundleDisplayName</key>
|
|
||||||
<string>ASEPRITE</string>
|
|
||||||
<key>CFBundleExecutable</key>
|
|
||||||
<string>aseprite</string>
|
|
||||||
<key>CFBundleIdentifier</key>
|
|
||||||
<string>org.aseprite.aseprite</string>
|
|
||||||
<key>CFBundleName</key>
|
|
||||||
<string>aseprite</string>
|
|
||||||
<key>CFBundlePackageType</key>
|
|
||||||
<string>APPL</string>
|
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
|
||||||
<string>6.0</string>
|
|
||||||
<key>CFBundleShortVersionString</key>
|
|
||||||
<string>1.0</string>
|
|
||||||
<key>CFBundleVersion</key>
|
|
||||||
<string>1.0</string>
|
|
||||||
<key>CFBundleIconFile</key>
|
|
||||||
<string>aseprite.icns</string>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
Binary file not shown.
@ -1,34 +0,0 @@
|
|||||||
#! /bin/sh
|
|
||||||
|
|
||||||
if [ ! -f update_version.sh ]; then
|
|
||||||
echo You must run update_version.sh from scripts/ directory
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
version=$1
|
|
||||||
if [ "$version" == "" ]; then
|
|
||||||
echo Usage: update_version.sh VERSION
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
version_win32=$(echo $1 | sed -e 's/\./,/g' | sed -e 's/-.*$//')
|
|
||||||
commas=$(grep -o "," <<< "$version_win32" | wc -l)
|
|
||||||
|
|
||||||
while [ $commas -lt 3 ] ; do
|
|
||||||
version_win32+=",0"
|
|
||||||
commas=$(grep -o "," <<< "$version_win32" | wc -l)
|
|
||||||
done
|
|
||||||
|
|
||||||
sed -e "s/define VERSION.*/define VERSION \"$version\"/" < ../src/config.h > tmp
|
|
||||||
mv tmp ../src/config.h
|
|
||||||
|
|
||||||
sed -e "s/gui version=\".*/gui version=\"$version\">/" < ../data/gui.xml > tmp
|
|
||||||
mv tmp ../data/gui.xml
|
|
||||||
|
|
||||||
cat ../src/main/resources_win32.rc \
|
|
||||||
| sed -e "s/FILEVERSION .*/FILEVERSION $version_win32/" \
|
|
||||||
| sed -e "s/PRODUCTVERSION .*/PRODUCTVERSION $version_win32/" \
|
|
||||||
| sed -e "s/FileVersion\",.*/FileVersion\", \"$version_win32\"/" \
|
|
||||||
| sed -e "s/ProductVersion\",.*/ProductVersion\", \"$version_win32\"/" \
|
|
||||||
> tmp
|
|
||||||
mv tmp ../src/main/resources_win32.rc
|
|
Loading…
Reference in New Issue
Block a user